增加失败提示
parent
1e39b1af6d
commit
fee6e8f4dd
|
@ -57,6 +57,10 @@ namespace YooAsset
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public AssetOperationHandle GetAssetObjet<TAsset>(out TAsset asset) where TAsset : UnityEngine.Object
|
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;
|
asset = AssetObject as TAsset;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue