From c27a3e105c6a929aa1f9353245874dc5dacb8ab5 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 28 Feb 2023 19:21:13 +0800 Subject: [PATCH] update asset bundle builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复SBP构建时,如果有原生文件导致报错的问题。 --- .../AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 004022c..26237ed 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -256,6 +256,9 @@ namespace YooAsset.Editor progressValue = 0; foreach (var patchBundle in patchManifest.BundleList) { + if (patchBundle.IsRawFile) + continue; + if (buildResultContext.Results.BundleInfos.ContainsKey(patchBundle.BundleName) == false) throw new Exception($"Not found bundle in SBP build results : {patchBundle.BundleName}");