Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APawn
Description
Return our PawnMovementComponent, if we have one. By default, returns the first PawnMovementComponent found. Native classes that create their own movement component should override this method for more efficiency.
Derived Overrides
| Name | GetMovementComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
| Include Path | #include "GameFramework/Pawn.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Pawn.cpp |
UFUNCTION (BlueprintCallable, Meta=(ToolTip="Return our PawnMovementComponent, if we have one."),
Category=Pawn)
virtual UPawnMovementComponent * GetMovementComponent() const