Update AssetBundleReporter

pull/4/head
hevinci 2022-03-31 10:51:17 +08:00
parent 2d9cccae6f
commit 9ca3dc5c0d
6 changed files with 5 additions and 5 deletions

View File

@ -53,11 +53,11 @@ namespace YooAsset.Editor
// 加载布局文件 // 加载布局文件
string rootPath = EditorTools.GetYooAssetPath(); string rootPath = EditorTools.GetYooAssetPath();
string uxml = $"{rootPath}/Editor/AssetBundleReporter/AssetBundleReporter.uxml"; string uxml = $"{rootPath}/Editor/AssetBundleReporter/{nameof(AssetBundleReporterWindow)}.uxml";
var visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml); var visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml);
if (visualAsset == null) if (visualAsset == null)
{ {
Debug.LogError($"Not found AssetBundleReporter.uxml : {uxml}"); Debug.LogError($"Not found {nameof(AssetBundleReporterWindow)}.uxml : {uxml}");
return; return;
} }
visualAsset.CloneTree(root); visualAsset.CloneTree(root);

View File

@ -31,7 +31,7 @@ namespace YooAsset.Editor
{ {
// 加载布局文件 // 加载布局文件
string rootPath = EditorTools.GetYooAssetPath(); string rootPath = EditorTools.GetYooAssetPath();
string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.uxml"; string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(AssetListReporterViewer)}.uxml";
_visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml); _visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml);
if (_visualAsset == null) if (_visualAsset == null)
{ {

View File

@ -33,7 +33,7 @@ namespace YooAsset.Editor
{ {
// 加载布局文件 // 加载布局文件
string rootPath = EditorTools.GetYooAssetPath(); string rootPath = EditorTools.GetYooAssetPath();
string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.uxml"; string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(BundleListReporterViewer)}.uxml";
_visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml); _visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml);
if (_visualAsset == null) if (_visualAsset == null)
{ {

View File

@ -38,7 +38,7 @@ namespace YooAsset.Editor
{ {
// 加载布局文件 // 加载布局文件
string rootPath = EditorTools.GetYooAssetPath(); string rootPath = EditorTools.GetYooAssetPath();
string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.uxml"; string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(SummaryReporterViewer)}.uxml";
_visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml); _visualAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(uxml);
if (_visualAsset == null) if (_visualAsset == null)
{ {