From fee6e8f4dd2302d9ad1b75ed6552c3d9fa7bd2c9 Mon Sep 17 00:00:00 2001 From: Y-way Date: Tue, 28 Jun 2022 19:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=B1=E8=B4=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Runtime/AssetSystem/Handles/AssetOperationHandle.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Handles/AssetOperationHandle.cs b/Assets/YooAsset/Runtime/AssetSystem/Handles/AssetOperationHandle.cs index 94c8b1a..add1558 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Handles/AssetOperationHandle.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Handles/AssetOperationHandle.cs @@ -57,6 +57,10 @@ namespace YooAsset /// public AssetOperationHandle GetAssetObjet(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; }