mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 01:30:14 +00:00
update AssetArtReporter
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user