update AssetArtReporter

pull/464/head
何冠峰 2025-02-05 19:04:05 +08:00
parent e76bbb6a85
commit 203b9994df
2 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,7 @@ namespace YooAsset.Editor
} }
private void FixAllBtn_clicked() private void FixAllBtn_clicked()
{ {
if (EditorUtility.DisplayDialog("提示", "修复全部资源(白名单除外", "Yes", "No")) if (EditorUtility.DisplayDialog("提示", "修复全部资源(排除白名单和隐藏元素", "Yes", "No"))
{ {
if (_reportCombiner != null) if (_reportCombiner != null)
_reportCombiner.FixAll(); _reportCombiner.FixAll();
@ -250,7 +250,7 @@ namespace YooAsset.Editor
} }
private void FixSelectBtn_clicked() private void FixSelectBtn_clicked()
{ {
if (EditorUtility.DisplayDialog("提示", "修复所有选中资源(包含白名单", "Yes", "No")) if (EditorUtility.DisplayDialog("提示", "修复勾选资源(包含白名单和隐藏元素", "Yes", "No"))
{ {
if (_reportCombiner != null) if (_reportCombiner != null)
_reportCombiner.FixSelect(); _reportCombiner.FixSelect();

View File

@ -184,7 +184,7 @@ namespace YooAsset.Editor
/// <summary> /// <summary>
/// 修复选定元素 /// 修复选定元素
/// 注意:排除白名单和隐藏元素 /// 注意:包含白名单和隐藏元素
/// </summary> /// </summary>
public void FixSelect() public void FixSelect()
{ {
@ -196,7 +196,7 @@ namespace YooAsset.Editor
List<ReportElement> fixList = new List<ReportElement>(elements.Count); List<ReportElement> fixList = new List<ReportElement>(elements.Count);
foreach (var element in elements) foreach (var element in elements)
{ {
if (element.Passes || element.IsWhiteList || element.Hidden) if (element.Passes)
continue; continue;
if (element.IsSelected) if (element.IsSelected)
fixList.Add(element); fixList.Add(element);