RealDocs

UCharacterMovementComponent::DefaultLandMovementMode

property Engine Blueprint Since 4.0
#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;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.