update asset bundle collector

移除资源包名的空格
main
hevinci 2024-02-20 09:48:32 +08:00
parent 619b5dbdaf
commit 23931e5d58
1 changed files with 2 additions and 3 deletions

View File

@ -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