From 9ca3dc5c0da392a145da2e4fea35f389637a9be2 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 31 Mar 2022 10:51:17 +0800 Subject: [PATCH] Update AssetBundleReporter --- .../Editor/AssetBundleReporter/AssetBundleReporterWindow.cs | 4 ++-- ...ssetBundleReporter.uxml => AssetBundleReporterWindow.uxml} | 0 ...Reporter.uxml.meta => AssetBundleReporterWindow.uxml.meta} | 0 .../VisualViewers/AssetListReporterViewer.cs | 2 +- .../VisualViewers/BundleListReporterViewer.cs | 2 +- .../VisualViewers/SummaryReporterViewer.cs | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename Assets/YooAsset/Editor/AssetBundleReporter/{AssetBundleReporter.uxml => AssetBundleReporterWindow.uxml} (100%) rename Assets/YooAsset/Editor/AssetBundleReporter/{AssetBundleReporter.uxml.meta => AssetBundleReporterWindow.uxml.meta} (100%) diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.cs b/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.cs index fcd621a..b55f0f7 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.cs @@ -53,11 +53,11 @@ namespace YooAsset.Editor // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleReporter/AssetBundleReporter.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleReporter/{nameof(AssetBundleReporterWindow)}.uxml"; var visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (visualAsset == null) { - Debug.LogError($"Not found AssetBundleReporter.uxml : {uxml}"); + Debug.LogError($"Not found {nameof(AssetBundleReporterWindow)}.uxml : {uxml}"); return; } visualAsset.CloneTree(root); diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporter.uxml b/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.uxml similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporter.uxml rename to Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.uxml diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporter.uxml.meta b/Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.uxml.meta similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporter.uxml.meta rename to Assets/YooAsset/Editor/AssetBundleReporter/AssetBundleReporterWindow.uxml.meta diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.cs index 866f2c5..a3f59d7 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.cs @@ -31,7 +31,7 @@ namespace YooAsset.Editor { // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/AssetListReporterViewer.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(AssetListReporterViewer)}.uxml"; _visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (_visualAsset == null) { diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.cs index c8c29b0..f0c4721 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.cs @@ -33,7 +33,7 @@ namespace YooAsset.Editor { // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/BundleListReporterViewer.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(BundleListReporterViewer)}.uxml"; _visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (_visualAsset == null) { diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.cs index 15e2f37..03eede0 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.cs @@ -38,7 +38,7 @@ namespace YooAsset.Editor { // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/SummaryReporterViewer.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleReporter/VisualViewers/{nameof(SummaryReporterViewer)}.uxml"; _visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (_visualAsset == null) {