UCharacterMovementComponent::CustomMovementMode
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYBlueprintReadOnly
Description
The active custom sub-mode when MovementMode is set to MOVE_Custom.
Caveats & Gotchas
- • Meaningless unless MovementMode is MOVE_Custom — the value is simply left over from the last custom mode used otherwise.
- • Set via SetMovementMode(MOVE_Custom, NewCustomMode), not by assigning the property directly, so the change replicates and OnMovementModeChanged fires correctly.
- • It's a raw uint8, not a UENUM — define your own enum in game code and cast to/from uint8 to give the values names.
Signature
uint8 CustomMovementMode Example
Enter a named custom movement mode C++
GetCharacterMovement()->SetMovementMode(MOVE_Custom, static_cast<uint8>(ECustomMovementMode::WallRunning)); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?