From 93a9167100bde52c6dcc09485489baa213c8016f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= <33317070@qq.com> Date: Tue, 2 Jun 2026 15:53:31 +0800 Subject: [PATCH] fix #712 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在禁用边玩边下的时候,加载原生文件流程未处理的问题。 --- .../Operation/DCFSLoadBundleOperation.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs index 8f326d35..457ae5b9 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs @@ -336,7 +336,17 @@ namespace YooAsset } else { - _steps = ESteps.DownloadFile; + if (_fileSystem.DisableOnDemandDownload) + { + _steps = ESteps.Done; + Status = EOperationStatus.Failed; + Error = $"The bundle not cached : {_bundle.BundleName}"; + YooLogger.Warning(Error); + } + else + { + _steps = ESteps.DownloadFile; + } } }