UCharacterMovementComponent::DefaultLandMovementMode
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Movement mode a Character starts with, or reverts to, when not in water — applied at player start and after teleporting.
Caveats & Gotchas
- • Only takes effect at startup or on teleport; changing it at runtime does not retroactively change the character's current MovementMode — call SetMovementMode() for that.
- • Also consulted for Characters spawned without a Controller when bRunPhysicsWithNoController is enabled, to pick their initial movement mode.
Signature
TEnumAsByte<enum EMovementMode> DefaultLandMovementMode Example
Start characters in walking mode C++
GetCharacterMovement()->DefaultLandMovementMode = MOVE_Walking; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?