From 8d07e9b81d6b6ce48c63d26ef5538e4a45441502 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 28 十一月 2025 16:48:57 +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 e4f05ac..dacc55a 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(Path.DirectorySeparatorChar);
+ 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(Path.DirectorySeparatorChar);
+ 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