diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml index 69a6761..d23d049 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebugger.uxml @@ -1,7 +1,7 @@ - + diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs index 6dc360d..b8f1650 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs @@ -1,4 +1,5 @@ -using UnityEditor; +#if UNITY_2019_4_OR_NEWER +using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; @@ -15,7 +16,32 @@ namespace YooAsset.Editor wnd.minSize = new Vector2(800, 600); } + /// + /// 视图模式 + /// + private enum EViewMode + { + /// + /// 内存视图 + /// + MemoryView, + + /// + /// 资源对象视图 + /// + AssetView, + + /// + /// 资源包视图 + /// + BundleView, + } + + private ToolbarMenu _viewModeMenu; private AssetListDebuggerViewer _assetListViewer; + private BundleListDebuggerViewer _bundleListViewer; + + private EViewMode _viewMode; private readonly DebugReport _debugReport = new DebugReport(); private string _searchKeyWord; @@ -39,26 +65,77 @@ namespace YooAsset.Editor var sampleBtn = root.Q