增加失败提示

pull/17/head
Y-way 2022-06-28 19:45:37 +08:00
parent 1e39b1af6d
commit fee6e8f4dd
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ namespace YooAsset
/// <returns></returns>
public AssetOperationHandle GetAssetObjet<TAsset>(out TAsset asset) where TAsset : UnityEngine.Object
{
if(Status != EOperationStatus.Succeed)
{
YooLogger.Warning($"The {Provider.MainAssetInfo.AssetPath}[{Provider.MainAssetInfo.AssetType}] is not success.Error[{Provider.LastError}]");
}
asset = AssetObject as TAsset;
return this;
}