Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ACharacter
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.
Virtual Inheritance
- APawn::GetMovementComponent → ACharacter::GetMovementComponent
| Name | GetMovementComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Character.h |
| Include Path | #include "GameFramework/Character.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Character.cpp |
virtual UPawnMovementComponent * GetMovementComponent() const