SPEC-6590 Implemented network entities instantiation by network spawnable asset ID

This commit is contained in:
pereslav
2021-05-05 00:00:06 +01:00
parent dfb262c572
commit e414cc151d
7 changed files with 121 additions and 63 deletions
@@ -104,9 +104,10 @@ namespace Multiplayer
networkedEntityIds.push_back(sourceEntity->GetId());
}
}
if (!PrefabDomUtils::StoreInstanceInPrefabDom(*sourceInstance, prefab))
if (networkedEntityIds.empty())
{
AZ_Error("NetworkPrefabProcessor", false, "Saving exported Prefab Instance within a Prefab Dom failed.");
// No networked entities in the prefab, no need to do anything in this processor.
return;
}