From 415f8449827cda7a20d50a24036b57bbf56965b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Wed, 22 Jan 2025 19:17:05 +0800 Subject: [PATCH] update asset art scanner --- .../AssetArtReporter/AssetArtReporterWindow.cs | 4 ++-- .../AssetArtReporter/AssetArtReporterWindow.uxml | 14 +++++++------- .../AssetArtScanner/AssetArtScannerWindow.cs | 15 +++++++++++---- .../AssetArtScanner/AssetArtScannerWindow.uxml | 12 +++++------- 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.cs b/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.cs index 7793c3f1..4e24b070 100644 --- a/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.cs +++ b/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.cs @@ -15,7 +15,7 @@ namespace YooAsset.Editor [MenuItem("YooAsset/AssetArt Reporter", false, 302)] public static AssetArtReporterWindow OpenWindow() { - AssetArtReporterWindow window = GetWindow("资源扫描报告", true, WindowsDefine.DockedWindowTypes); + AssetArtReporterWindow window = GetWindow("AssetArt Reporter", true, WindowsDefine.DockedWindowTypes); window.minSize = new Vector2(800, 600); return window; } @@ -247,7 +247,7 @@ namespace YooAsset.Editor } private void FixSelectBtn_clicked() { - if (EditorUtility.DisplayDialog("提示", "修复所有选中资源(白名单除外)", "Yes", "No")) + if (EditorUtility.DisplayDialog("提示", "修复所有选中资源(包含白名单)", "Yes", "No")) { if (_reportCombiner != null) _reportCombiner.FixSelect(); diff --git a/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.uxml b/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.uxml index 3dc5815c..3b8ce94e 100644 --- a/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.uxml +++ b/Assets/YooAsset/Editor/AssetArtReporter/AssetArtReporterWindow.uxml @@ -1,13 +1,13 @@ - - - - - - - + + + + + + + diff --git a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.cs b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.cs index 99317b45..a271872e 100644 --- a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.cs +++ b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.cs @@ -14,7 +14,7 @@ namespace YooAsset.Editor [MenuItem("YooAsset/AssetArt Scanner", false, 301)] public static void OpenWindow() { - AssetArtScannerWindow window = GetWindow("资源扫描工具", true, WindowsDefine.DockedWindowTypes); + AssetArtScannerWindow window = GetWindow("AssetArt Scanner", true, WindowsDefine.DockedWindowTypes); window.minSize = new Vector2(800, 600); } @@ -241,9 +241,16 @@ namespace YooAsset.Editor } private void ScanAllBtn_clicked() { - string searchKeyWord = _scannerSearchField.value; - AssetArtScannerSettingData.ScanAll(searchKeyWord); - AssetDatabase.Refresh(); + if (EditorUtility.DisplayDialog("提示", $"开始全面扫描!", "Yes", "No")) + { + string searchKeyWord = _scannerSearchField.value; + AssetArtScannerSettingData.ScanAll(searchKeyWord); + AssetDatabase.Refresh(); + } + else + { + Debug.LogWarning("全面扫描已经取消"); + } } private void ScanBtn_clicked() { diff --git a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.uxml b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.uxml index 267fa441..2224ce24 100644 --- a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.uxml +++ b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerWindow.uxml @@ -1,15 +1,13 @@ - - + + + - - - - + @@ -18,7 +16,7 @@ - +