UPawnMovementComponent::GetController

Returns this component's associated controller, typically from the owning Pawn.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PawnMovementComponent.h

Include

#include "GameFramework/PawnMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/PawnMovementComponent.cpp

Syntax

virtual AController * GetController() const

Remarks

Returns this component's associated controller, typically from the owning Pawn. May be null. May be overridden for special handling when the controller isn't paired with the Pawn that owns this component.