From 65c2651105ade33763d09ef55a62db4e742a345f Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 3 Mar 2023 18:04:44 +0800 Subject: [PATCH] Update EditorHelper.cs --- Assets/YooAsset/Editor/EditorHelper.cs | 44 -------------------------- 1 file changed, 44 deletions(-) diff --git a/Assets/YooAsset/Editor/EditorHelper.cs b/Assets/YooAsset/Editor/EditorHelper.cs index 08b3b4a..c90b01d 100644 --- a/Assets/YooAsset/Editor/EditorHelper.cs +++ b/Assets/YooAsset/Editor/EditorHelper.cs @@ -10,50 +10,6 @@ namespace YooAsset.Editor #if UNITY_2019_4_OR_NEWER private readonly static Dictionary _uxmlDic = new Dictionary(); - /* - static EditorHelper() - { - // 资源包收集 - _uxmlDic.Add(typeof(AssetBundleCollectorWindow), "355c4ac5cdebddc4c8362bed6f17a79e"); - - // 资源包构建 - _uxmlDic.Add(typeof(AssetBundleBuilderWindow), "28ba29adb4949284e8c48893218b0d9a"); - - // 资源包调试 - _uxmlDic.Add(typeof(AssetBundleDebuggerWindow), "790db12999afd334e8fb6ba70ef0a947"); - _uxmlDic.Add(typeof(DebuggerAssetListViewer), "31c6096c1cb29b4469096b7b4942a322"); - _uxmlDic.Add(typeof(DebuggerBundleListViewer), "932a25ffd05c13c47994d66e9d73bc37"); - - // 构建报告 - _uxmlDic.Add(typeof(AssetBundleReporterWindow), "9052b72c383e95043a0c7e7f369b1ad7"); - _uxmlDic.Add(typeof(ReporterSummaryViewer), "f8929271050855e42a1ccc6b14993a04"); - _uxmlDic.Add(typeof(ReporterAssetListViewer), "5f81bc15a55ee0a49a266f9d71e2372b"); - _uxmlDic.Add(typeof(ReporterBundleListViewer), "56d6dbe0d65ce334a8996beb19612989"); - } - - /// - /// 加载窗口的布局文件 - /// - public static UnityEngine.UIElements.VisualTreeAsset LoadWindowUXML() where TWindow : class - { - var windowType = typeof(TWindow); - if (_uxmlDic.TryGetValue(windowType, out string uxmlGUID)) - { - string assetPath = AssetDatabase.GUIDToAssetPath(uxmlGUID); - if (string.IsNullOrEmpty(assetPath)) - throw new System.Exception($"Invalid YooAsset uxml guid : {uxmlGUID}"); - var visualTreeAsset = AssetDatabase.LoadAssetAtPath(assetPath); - if (visualTreeAsset == null) - throw new System.Exception($"Failed to load {windowType}.uxml"); - return visualTreeAsset; - } - else - { - throw new System.Exception($"Invalid YooAsset window type : {windowType}"); - } - } - */ - /// /// 加载窗口的布局文件 ///