Start of new materials, disable async asset loading

This commit is contained in:
Simon Lübeß
2024-11-30 16:21:00 +01:00
parent cf1f2a9a7b
commit 577cca5886
6 changed files with 203 additions and 11 deletions
+2 -2
View File
@@ -362,13 +362,13 @@ class EditorContentManager : IContentManager
return _identiferToHandle.ContainsKey(identifier);
}
public Asset GetAsset(Type assetType, AssetHandle handle)
public Asset GetAsset(Type assetType, AssetHandle handle, bool blocking = false)
{
Asset asset = null;
if (!_handleToAsset.TryGetValue(handle, out asset))
{
LoadAsset(handle);
LoadAsset(handle, blocking);
}
if (var placeholder = asset as PlaceholderAsset)