From a6b333fe3541457bce54462f6271020a08ee212c Mon Sep 17 00:00:00 2001 From: Blank Date: Tue, 27 Aug 2024 19:13:36 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E5=8F=AF=E4=BB=A5=E8=8E=B7=E5=8F=96=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=93=8D=E4=BD=9C=E5=AF=B9=E8=B1=A1=E7=9A=84=E5=8C=85?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 主要是外部如果是回调的时候,不一定在之前的代码位置了.所需要需要从操作对象中直接获取当前的包名 --- Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs index 11f5cab9..f187d0d5 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs @@ -93,7 +93,7 @@ namespace YooAsset throw new System.NotImplementedException(this.GetType().Name); } - internal string GetPackageName() + public string GetPackageName() { return _packageName; } @@ -191,4 +191,4 @@ namespace YooAsset private TaskCompletionSource _taskCompletionSource; #endregion } -} \ No newline at end of file +}