[UE4]设置MovementMode

 

UE4内置了一些行为模式,比如:Walking、Flying等,还不清楚其具体意义,用法先记下。

 

蓝图方式

在Character蓝图中:Character Movement -》 Set Movement Mode


[UE4]设置MovementMode_第1张图片
 

C++方式

MyCharacter->GetCharacterMovement()->SetMovementMode(EMovementMode::MOVE_Flying);

 

其他参考:

UCharacterMovementComponent::SetMovementMode

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/UCharacterMovementComponent/SetMovementMode/index.html

How to make blueprints can swith to flying mode

https://answers.unrealengine.com/questions/88390/how-to-make-blueprints-can-swith-to-flying-mode.html

Blueprint Creating Custom Character Movement Component

https://wiki.unrealengine.com/Blueprint_Creating_Custom_Character_Movement_Component

 

 

你可能感兴趣的:(UE4)