ACharacter::GetMovementComponent

Return our PawnMovementComponent, if we have one.

Windows
MacOS
Linux

Override Hierarchy

APawn::GetMovementComponent()

ACharacter::GetMovementComponent()

References

Module

Engine

Header

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

Include

#include "GameFramework/Character.h"

Source

/Engine/Source/Runtime/Engine/Private/Character.cpp

Syntax

virtual UPawnMovementComponent * GetMovementComponent() const

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss