UCharacterMovementComponent::LedgeCheckThreshold
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteAdvancedDisplay
Description
Used to determine whether the character is going off a ledge. If the drop is shorter than this value the character is allowed to walk off it instead of being stopped at the edge.
Caveats & Gotchas
- • Measured in centimeters (ForceUnits=cm), not a ratio — treat it as an absolute drop height, not a percentage of capsule height.
- • AdvancedDisplay property; not visible in the Details panel unless advanced properties are shown.
Signature
float LedgeCheckThreshold Example
Allow the character to step off short drops without ledge-blocking C++
GetCharacterMovement()->LedgeCheckThreshold = 15.f; Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?