UCharacterMovementComponent::GetGroundMovementMode
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: inlineconst
Description
Returns the movement mode (MOVE_Walking or MOVE_NavWalking) the character will switch to once it stops falling and resumes ground movement.
Caveats & Gotchas
- • Reflects the pending ground mode, not necessarily the character's current movement mode — check MovementMode directly if you need the mode right now.
- • Not a UFUNCTION, so it isn't callable from Blueprint.
Signature
EMovementMode GetGroundMovementMode() const { return GroundMovementMode; } Return Type
EMovementMode Example
Checking the pending ground mode C++
UCharacterMovementComponent* Movement = GetCharacterMovement();
if (Movement->GetGroundMovementMode() == MOVE_NavWalking)
{
// Character will resume nav-mesh-projected walking once it lands
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?