mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-31 05:58:47 +00:00
Update AssetArtReporterWindow.cs
This commit is contained in:
@@ -119,10 +119,10 @@ namespace YooAsset.Editor
|
|||||||
visualAsset.CloneTree(root);
|
visualAsset.CloneTree(root);
|
||||||
|
|
||||||
// 导入按钮
|
// 导入按钮
|
||||||
var singleImportBtn = root.Q<Button>("SingleImportButton");
|
var importSingleBtn = root.Q<Button>("SingleImportButton");
|
||||||
singleImportBtn.clicked += SingleImportBtn_clicked;
|
importSingleBtn.clicked += ImportSingleBtn_clicked;
|
||||||
var multiImportBtn = root.Q<Button>("MultiImportButton");
|
var importMultiBtn = root.Q<Button>("MultiImportButton");
|
||||||
multiImportBtn.clicked += MultiImportBtn_clicked;
|
importMultiBtn.clicked += ImportMultiBtn_clicked;
|
||||||
|
|
||||||
// 修复按钮
|
// 修复按钮
|
||||||
var fixAllBtn = root.Q<Button>("FixAllButton");
|
var fixAllBtn = root.Q<Button>("FixAllButton");
|
||||||
@@ -193,7 +193,7 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SingleImportBtn_clicked()
|
private void ImportSingleBtn_clicked()
|
||||||
{
|
{
|
||||||
string selectFilePath = EditorUtility.OpenFilePanel("导入报告", _lastestOpenFolder, "json");
|
string selectFilePath = EditorUtility.OpenFilePanel("导入报告", _lastestOpenFolder, "json");
|
||||||
if (string.IsNullOrEmpty(selectFilePath))
|
if (string.IsNullOrEmpty(selectFilePath))
|
||||||
@@ -201,7 +201,7 @@ namespace YooAsset.Editor
|
|||||||
|
|
||||||
ImportSingleReprotFile(selectFilePath);
|
ImportSingleReprotFile(selectFilePath);
|
||||||
}
|
}
|
||||||
private void MultiImportBtn_clicked()
|
private void ImportMultiBtn_clicked()
|
||||||
{
|
{
|
||||||
string selectFolderPath = EditorUtility.OpenFolderPanel("导入报告", _lastestOpenFolder, null);
|
string selectFolderPath = EditorUtility.OpenFolderPanel("导入报告", _lastestOpenFolder, null);
|
||||||
if (string.IsNullOrEmpty(selectFolderPath))
|
if (string.IsNullOrEmpty(selectFolderPath))
|
||||||
|
|||||||
Reference in New Issue
Block a user