Merge pull request #7145 from aws-lumberyard-dev/Prefabs/PlayInEditorMissingAssets

Fixed missing assets when entering Play-In-Editor.
This commit is contained in:
Ronald Koppers
2022-01-27 14:41:11 -08:00
committed by GitHub
7 changed files with 190 additions and 108 deletions
@@ -92,6 +92,12 @@ namespace AZ::Data
result.Combine(resultHint);
}
if (SerializedAssetTracker* assetTracker = context.GetMetadata().Find<SerializedAssetTracker>();
assetTracker != nullptr && result.GetProcessing() == JSR::Processing::Completed)
{
assetTracker->AddAsset(*instance);
}
return context.Report(result,
result.GetProcessing() == JSR::Processing::Completed ? "Successfully stored Asset<T>." : "Failed to store Asset<T>.");
}