UCharacterMovementComponent::SetGroundMovementMode

Set movement mode to use when returning to walking movement (either MOVE_Walking or MOVE_NavWalking).

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

void SetGroundMovementMode
(
    EMovementMode NewGroundMovementMode
)

Remarks

Set movement mode to use when returning to walking movement (either MOVE_Walking or MOVE_NavWalking). If movement mode is currently one of Walking or NavWalking, this will also change the current movement mode (via SetMovementMode()) if the new mode is not the current ground mode.

Parameters

Parameter

Description

NewGroundMovementMode

New ground movement mode. Must be either MOVE_Walking or MOVE_NavWalking, other values are ignored.

See Also

GroundMovementMode