RealDocs

UCharacterMovementComponent::MaxOutOfWaterStepHeight

property Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteAdvancedDisplay

Description

Maximum height of a ledge, in centimetres, that a swimming character can climb onto when exiting water.

Caveats & Gotchas

  • Only used during the transition out of MOVE_Swimming onto solid ground, not for ordinary walking step-ups (see MaxStepHeight for that).
  • Marked AdvancedDisplay in the header, so it's hidden from the default Details panel view unless advanced properties are shown.
  • If a pool or shoreline edge is taller than this value, the character will fail to climb out and may bob at the edge instead.

Signature

float MaxOutOfWaterStepHeight;

Example

Allow climbing onto a taller ledge from water C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
	MoveComp->MaxOutOfWaterStepHeight = 60.0f;
}

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.