From 23931e5d58cb19b0382a21fbd58e391ca8f56101 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 20 Feb 2024 09:48:32 +0800 Subject: [PATCH] update asset bundle collector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除资源包名的空格 --- .../Editor/AssetBundleCollector/CollectRules/IPackRule.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs b/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs index 14f0357..2741388 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs @@ -34,8 +34,7 @@ namespace YooAsset.Editor public string GetMainBundleName(string packageName, bool uniqueBundleName) { string fullName; - string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').ToLower(); - bundleName = bundleName.Replace(" ", "_"); + string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').Replace(" ", "_").ToLower(); if (uniqueBundleName) fullName = $"{packageName}_{bundleName}.{_bundleExtension}"; else @@ -53,7 +52,7 @@ namespace YooAsset.Editor return string.Empty; string fullName; - string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').ToLower(); + string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').Replace(" ", "_").ToLower(); if (uniqueBundleName) fullName = $"{packageName}_share_{bundleName}.{_bundleExtension}"; else