UCharacterMovementComponent::DefaultWaterMovementMode
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Movement mode a Character starts with, or reverts to, when inside a water volume — applied at player start and after teleporting.
Caveats & Gotchas
- • Only relevant if the character actually enters a PhysicsVolume with bWaterVolume set; most projects never trigger this path, so leaving it at MOVE_Swimming has no visible effect unless swimming volumes are set up.
- • Like DefaultLandMovementMode, only applied at startup or teleport — not retroactively when the property changes at runtime.
Signature
TEnumAsByte<enum EMovementMode> DefaultWaterMovementMode Example
Default to swimming in water volumes C++
GetCharacterMovement()->DefaultWaterMovementMode = MOVE_Swimming; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?