From b6c07cd9568f62a7c20841bbe6772da00f0e6dc3 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 31 Mar 2022 10:51:43 +0800 Subject: [PATCH] Update AssetBundleDebugger --- .../Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs | 4 ++-- ...ssetBundleDebugger.uxml => AssetBundleDebuggerWindow.uxml} | 0 ...Debugger.uxml.meta => AssetBundleDebuggerWindow.uxml.meta} | 0 .../VisualViewers/AssetListDebuggerViewer.cs | 4 ++-- .../VisualViewers/BundleListDebuggerViewer.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename Assets/YooAsset/Editor/AssetBundleDebugger/{AssetBundleDebugger.uxml => AssetBundleDebuggerWindow.uxml} (100%) rename Assets/YooAsset/Editor/AssetBundleDebugger/{AssetBundleDebugger.uxml.meta => AssetBundleDebuggerWindow.uxml.meta} (100%) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs index b8f1650..056a31d 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs @@ -52,11 +52,11 @@ namespace YooAsset.Editor // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleDebugger/{nameof(AssetBundleDebuggerWindow)}.uxml"; var visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (visualAsset == null) { - Debug.LogError($"Not found AssetBundleDebugger.uxml : {uxml}"); + Debug.LogError($"Not found {nameof(AssetBundleDebuggerWindow)}.uxml : {uxml}"); return; } visualAsset.CloneTree(root); diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.uxml similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml rename to Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.uxml diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml.meta b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.uxml.meta similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml.meta rename to Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.uxml.meta diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs index 3dcef7f..a20f17a 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs @@ -25,7 +25,7 @@ namespace YooAsset.Editor { // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleDebugger/VisualViewers/{nameof(AssetListDebuggerViewer)}.uxml"; _visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (_visualAsset == null) { @@ -39,12 +39,12 @@ namespace YooAsset.Editor _assetListView = _root.Q("TopListView"); _assetListView.makeItem = MakeAssetListViewItem; _assetListView.bindItem = BindAssetListViewItem; - #if UNITY_2020_1_OR_NEWER _assetListView.onSelectionChange += AssetListView_onSelectionChange; #else _assetListView.onSelectionChanged += AssetListView_onSelectionChange; #endif + // 依赖列表 _dependListView = _root.Q("BottomListView"); _dependListView.makeItem = MakeDependListViewItem; diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/BundleListDebuggerViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/BundleListDebuggerViewer.cs index 25d15a4..b58f3ca 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/BundleListDebuggerViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/BundleListDebuggerViewer.cs @@ -25,7 +25,7 @@ namespace YooAsset.Editor { // 加载布局文件 string rootPath = EditorTools.GetYooAssetPath(); - string uxml = $"{rootPath}/Editor/AssetBundleDebugger/VisualViewers/BundleListDebuggerViewer.uxml"; + string uxml = $"{rootPath}/Editor/AssetBundleDebugger/VisualViewers/{nameof(BundleListDebuggerViewer)}.uxml"; _visualAsset = AssetDatabase.LoadAssetAtPath(uxml); if (_visualAsset == null) {