AActor在ue4中设置移动性
AActor set mobility in ue4
如何在C++ 中将Mobility 部分的Actor 默认设置从static 更改为movable。
我知道你可以将引擎更改为 select 一个项目,但我想了解 c++ 中的什么方法允许你更改移动部分。
我看了文档没找到。
Actor 由组件组成,RootComponent 赋予 Actor 在场景中的变换和移动性。
每个组件都可以有自己的移动性。
使用以下函数更改给定组件的移动性。
MySceneComponent->SetMobility(EComponentMobility::Movable);
如何在C++ 中将Mobility 部分的Actor 默认设置从static 更改为movable。 我知道你可以将引擎更改为 select 一个项目,但我想了解 c++ 中的什么方法允许你更改移动部分。 我看了文档没找到。
Actor 由组件组成,RootComponent 赋予 Actor 在场景中的变换和移动性。
每个组件都可以有自己的移动性。
使用以下函数更改给定组件的移动性。
MySceneComponent->SetMobility(EComponentMobility::Movable);