From 58a40ad1d16f4f88d949f84d74388cb028cc938a Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 22 Mar 2023 09:43:28 +0800 Subject: [PATCH] update asset bundle builder --- .../BuildTasks/TaskUpdateBundleInfo.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBundleInfo.cs index f907a8e..4881a51 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBundleInfo.cs @@ -17,13 +17,13 @@ namespace YooAsset.Editor string packageOutputDirectory = buildParametersContext.GetPackageOutputDirectory(); int outputNameStyle = (int)buildParametersContext.Parameters.OutputNameStyle; - // 1.检测路径长度 + // 1.检测文件名长度 foreach (var bundleInfo in buildMapContext.Collection) { - // NOTE:检测路径长度不要超过260字符。 - string filePath = $"{pipelineOutputDirectory}/{bundleInfo.BundleName}"; - if (filePath.Length >= 260) - throw new Exception($"The output bundle name is too long {filePath.Length} chars : {filePath}"); + // NOTE:检测文件名长度不要超过260字符。 + string fileName = bundleInfo.BundleName; + if (fileName.Length >= 260) + throw new Exception($"The output bundle name is too long {fileName.Length} chars : {fileName}"); } // 2.更新构建输出的文件路径