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) {