From 8c10b703bb1c1e3f4e98859c2893bfa29d5265b0 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 5 Jul 2023 16:31:06 +0800 Subject: [PATCH] update runtime code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 变更IQueryServices.QueryStreamingAssets(string packageName, string fileName)方法 --- .../YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs | 2 +- Assets/YooAsset/Runtime/Services/IQueryServices.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs index e98912e..cfe1920 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs @@ -81,7 +81,7 @@ namespace YooAsset private bool IsBuildinPackageBundle(PackageBundle packageBundle) { - return _queryServices.QueryStreamingAssets(packageBundle.FileName); + return _queryServices.QueryStreamingAssets(_packageName, packageBundle.FileName); } private bool IsCachedPackageBundle(PackageBundle packageBundle) { diff --git a/Assets/YooAsset/Runtime/Services/IQueryServices.cs b/Assets/YooAsset/Runtime/Services/IQueryServices.cs index 2d3b100..16170ba 100644 --- a/Assets/YooAsset/Runtime/Services/IQueryServices.cs +++ b/Assets/YooAsset/Runtime/Services/IQueryServices.cs @@ -6,6 +6,6 @@ namespace YooAsset /// /// 查询内置资源 /// - bool QueryStreamingAssets(string fileName); + bool QueryStreamingAssets(string packageName, string fileName); } } \ No newline at end of file