From cd671afd1a688e1377eb7814a7047aa3595d6587 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 28 十一月 2025 17:00:34 +0800
Subject: [PATCH] 0312 音效打包斜杠问题

---
 Assets/Editor/Tool/UpdateAssetBundleName.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Editor/Tool/UpdateAssetBundleName.cs b/Assets/Editor/Tool/UpdateAssetBundleName.cs
index dacc55a..d250752 100644
--- a/Assets/Editor/Tool/UpdateAssetBundleName.cs
+++ b/Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -432,7 +432,7 @@
 
         foreach (var file in allFiles)
         {
-            var pathStringArray = file.DirectoryName.Split("Audio/");
+            var pathStringArray = file.DirectoryName.Split("Audio\\");
             var importerPath = assetPath + pathStringArray[pathStringArray.Length - 1] + Path.DirectorySeparatorChar + file.Name;
             var importer = AssetImporter.GetAtPath(importerPath);
             if (importer == null)
@@ -446,7 +446,7 @@
 
         foreach (var file in allFiles1)
         {
-            var pathStringArray = file.DirectoryName.Split("Audio/");
+            var pathStringArray = file.DirectoryName.Split("Audio\\");
             var importerPath = assetPath + pathStringArray[pathStringArray.Length - 1] + Path.DirectorySeparatorChar + file.Name;
             var importer = AssetImporter.GetAtPath(importerPath);
             if (importer == null)

--
Gitblit v1.8.0