Update asset system

This commit is contained in:
hevinci
2022-05-09 21:18:15 +08:00
parent bf0f479234
commit 79efe6237d
4 changed files with 30 additions and 5 deletions
@@ -74,7 +74,10 @@ namespace YooAsset
Status = AllAssetObjects == null ? EStatus.Fail : EStatus.Success;
if (Status == EStatus.Fail)
{
LastError = $"Failed to load sub assets : {nameof(AssetType)} in {AssetPath}";
if (AssetType == null)
LastError = $"Failed to load sub assets : {AssetPath} AssetType : null";
else
LastError = $"Failed to load sub assets : {AssetPath} AssetType : {AssetType}";
YooLogger.Error(LastError);
}
InvokeCompletion();