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