using System; using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace BITKit.GameEditor { public class AssetCacheDefaultWindow : EditorWindow { [MenuItem("Tools/AssetCache/DefaultWindow")] public static void Open() { var window = GetWindow(); window.Show(); } private void OnEnable() { Rebuild(); } private void Rebuild() { rootVisualElement.Clear(); var obj =AssetDatabase.LoadAssetAtPath("Assets/Artists/Configs/Asset Cache.asset"); if (obj is null) { rootVisualElement.Create