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