diff --git a/Assets/Scripts/OCES/Audio/HandWritten/Editor/AudioImportTool.cs b/Assets/Scripts/OCES/Audio/HandWritten/Editor/AudioImportTool.cs index ffb95c2..20a6b2a 100644 --- a/Assets/Scripts/OCES/Audio/HandWritten/Editor/AudioImportTool.cs +++ b/Assets/Scripts/OCES/Audio/HandWritten/Editor/AudioImportTool.cs @@ -26,14 +26,20 @@ namespace OCES.Audio { if (EditorUtility.DisplayDialog( "Apply Audio Import Settings", - $"将对 {k_audioResourcePath} 下所有文件重新应用导入设置,确认继续?", + $"将对 {AudioAbsolutePath} 下所有文件重新应用导入设置,确认继续?", "确认", "取消")) { Run(); } } -// Unity -batchmode -executeMethod OCES.Audio.Editor.AudioImportTool.RunCLI + /// + /// Executes the audio import tool from the command line in batch mode. + /// This method is designed to be called via Unity's -executeMethod command line argument + /// and serves as the entry point for automated audio import workflows. + /// It initializes the process and delegates to the main Run method to apply + /// audio import settings to all supported audio files in the configured directory. + /// public static void RunCli() { Debug.Log("[AudioImportTool] CLI 模式启动"); @@ -148,7 +154,7 @@ namespace OCES.Audio return true; } - enum AudioCategory {Music, SFX, Voice } + enum AudioCategory { Music, SFX, Voice } static AudioCategory ClassifyAudio( string fileName, // 不含扩展名