coderespawn / prefabricator-ue4

Prefabricator - Prefab plugin for Unreal Engine 4 https://prefabricator.dev
MIT License
317 stars 76 forks source link

LoadPrefab is not called correctly while SpawnActor #33

Open xoyojank opened 4 years ago

xoyojank commented 4 years ago
  1. drag a prefab to editor viewport
  2. UPrefabricatorActorFactory::SpawnActor called
  3. APrefabActor::PostActorCreated()->FPrefabTools::LoadStateFromPrefabAsset

but at this time, PrefabActor->GetPrefabAsset() == nullptr, so ActorState is not loaded