using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using System.IO; public class Tool : EditorWindow { [SerializeField] private VisualTreeAsset m_VisualTreeAsset = default; [MenuItem("Tool/工具箱")] public static void ShowExample() { Tool wnd = GetWindow(); wnd.titleContent = new GUIContent("工具箱"); } //private string[] _materialsPath; List _materialFolders = new List(); public void CreateGUI() { VisualElement root = rootVisualElement; VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate(); labelFromUXML.Q