Fix spawning nested prefab with different root actor

#1138
This commit is contained in:
Wojtek Figat
2023-06-11 20:43:31 +02:00
parent 60ddf0ea89
commit 958c7b2181
7 changed files with 61 additions and 23 deletions

View File

@@ -50,11 +50,7 @@ public:
/// <summary>
/// Gets the root object identifier (prefab object ID). Asset must be loaded.
/// </summary>
Guid GetRootObjectId() const
{
ASSERT(IsLoaded());
return ObjectsIds[0];
}
Guid GetRootObjectId() const;
/// <summary>
/// Requests the default prefab object instance. Deserializes the prefab objects from the asset. Skips if already done.