From 3a7f3bb68da1c638731897373a74157e34b6508b Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 21 Sep 2022 11:20:32 +0800 Subject: [PATCH] Update AssetBundleBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复在可编程构建管线下模拟构建模式报错。 --- .../BuildTasks/TaskCreatePatchManifest.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 1ea6f0f..1b15a73 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -37,8 +37,11 @@ namespace YooAsset.Editor // 更新Unity内置资源包的引用关系 if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline) { - var buildResultContext = context.GetContextObject(); - UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results); + if(buildParameters.Parameters.BuildMode == EBuildMode.IncrementalBuild) + { + var buildResultContext = context.GetContextObject(); + UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results); + } } // 创建补丁清单文件