From a5e24be5d4a2c06c0430c2f48b6f3dfe3ba8741d Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 24 Feb 2023 18:49:45 +0800 Subject: [PATCH] update asset bundle builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复资源包存在循环依赖的情况下打包卡死的问题。 --- .../AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 66c9cf5..d9d5f87 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -288,7 +288,7 @@ namespace YooAsset.Editor string bundleName = bundleInfo.BundleName; if (bundleName == patchBundle.BundleName) continue; - string[] dependencies = buildResultContext.UnityManifest.GetAllDependencies(bundleName); + string[] dependencies = buildResultContext.UnityManifest.GetDirectDependencies(bundleName); if (dependencies.Contains(patchBundle.BundleName)) { referenceList.Add(bundleName);