From ccac691701c3dc6ef5b037b810444226fbdeac64 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 18 Oct 2022 12:07:33 +0800 Subject: [PATCH] Update runtime code --- Assets/YooAsset/Runtime/AssetsPackage.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/AssetsPackage.cs b/Assets/YooAsset/Runtime/AssetsPackage.cs index 468da44..3d32883 100644 --- a/Assets/YooAsset/Runtime/AssetsPackage.cs +++ b/Assets/YooAsset/Runtime/AssetsPackage.cs @@ -146,7 +146,7 @@ namespace YooAsset if (parameters.LocationServices == null) throw new Exception($"{nameof(ILocationServices)} is null."); - if(parameters is EditorSimulateModeParameters) + if (parameters is EditorSimulateModeParameters) { var editorSimulateModeParameters = parameters as EditorSimulateModeParameters; if (string.IsNullOrEmpty(editorSimulateModeParameters.SimulatePatchManifestPath)) @@ -953,6 +953,9 @@ namespace YooAsset /// internal bool IsIncludeBundleFile(string fileName) { + // NOTE : 编辑器模拟模式下始终返回TRUE + if (_playMode == EPlayMode.EditorSimulateMode) + return true; return _bundleServices.IsIncludeBundleFile(fileName); } #endregion