RealDocs

UCharacterMovementComponent::CrouchedHalfHeight

property Engine Blueprint Deprecated Since 4.0
Deprecated: Public access is deprecated as of UE 5.0 and will become private in a future release. Use SetCrouchedHalfHeight and GetCrouchedHalfHeight instead.
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteBlueprintSetterBlueprintGetter

Description

Capsule half-height to use while the character is crouched, before any component scale is applied.

Caveats & Gotchas

  • Direct public access to this field is deprecated since 5.0 — call SetCrouchedHalfHeight/GetCrouchedHalfHeight instead, which is also what Blueprint uses via the BlueprintSetter/BlueprintGetter.
  • This only defines the target half-height for the crouch pose; it does not by itself resize the capsule component — that happens through the character's crouch/uncrouch logic which resizes the collision capsule to match.

Signature

float CrouchedHalfHeight

Example

Set crouch height via the accessor C++
GetCharacterMovement()->SetCrouchedHalfHeight(40.f);

Version History

Introduced in: 4.0

Version Status Notes
5.6 deprecated
5.0 deprecated Public direct access deprecated in favor of SetCrouchedHalfHeight/GetCrouchedHalfHeight; will become private in a future release.

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.