mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-17 13:20:20 +00:00
增加失败提示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user