UE4 编辑器的非运行时,给StaticMeshActor设置StaticMesh
UAssetManager::GetStreamableManager().LoadSynchronous
然后还要调用
GetStaticMeshComponent()->RegisterComponent();
不要用
LoadObject<>(),
这个适用于运行时
UAssetManager::GetStreamableManager().LoadSynchronous
然后还要调用
GetStaticMeshComponent()->RegisterComponent();
不要用
LoadObject<>(),
这个适用于运行时