From c7329fcab5c9349ea6e98c4b9989a46200ad6ca1 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 20 Feb 2024 09:55:49 +0800 Subject: [PATCH] feat : remove space character for bundle name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除资源包名里的空格字符 --- .../Editor/AssetBundleCollector/CollectRules/IPackRule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs b/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs index 8f2a8c9..538fb3f 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/CollectRules/IPackRule.cs @@ -42,7 +42,7 @@ namespace YooAsset.Editor public string GetBundleName(string packageName, bool uniqueBundleName) { string fullName; - string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').ToLower(); + string bundleName = EditorTools.GetRegularPath(_bundleName).Replace('/', '_').Replace('.', '_').Replace(" ", "_").ToLower(); if (uniqueBundleName) fullName = $"{packageName}_{bundleName}.{_bundleExtension}"; else @@ -56,7 +56,7 @@ namespace YooAsset.Editor public string GetShareBundleName(string packageName, bool uniqueBundleName) { 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