UCharacterMovementComponent::MaxCustomMovementSpeed
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Caps ground speed while the component is in a user-defined Custom movement mode (MOVE_Custom).
Caveats & Gotchas
- • Only takes effect while MovementMode is MOVE_Custom — it's ignored in Walking, Falling, Flying, and Swimming.
- • GetMaxSpeed() must actually read this value for MOVE_Custom for the cap to apply; setting the property alone does nothing unless your custom movement logic consults it.
Signature
float MaxCustomMovementSpeed Example
Cap speed for a custom movement mode C++
GetCharacterMovement()->MaxCustomMovementSpeed = 800.f; Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?