Cherrypick 7adf5ca5a5911997102017e2db7981e7b2926100. Fixed assert for network prefabs when asset path was empty

This commit is contained in:
Gene Walters
2021-06-17 09:11:48 -07:00
parent f2b6ea7d8d
commit 0810f353c6
@@ -130,6 +130,7 @@ namespace Multiplayer
// Instance container for net entities
AZStd::unique_ptr<Instance> networkInstance(aznew Instance());
networkInstance->SetTemplateSourcePath(AZ::IO::PathView(uniqueName));
// Create an asset for our future network spawnable: this allows us to put references to the asset in the components
AZ::Data::Asset<AzFramework::Spawnable> networkSpawnableAsset;