using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; namespace MuHua { /// /// UI面板 /// public class ModuleUIPanel { /// 绑定的元素 public readonly VisualElement element; /// UI控件 public ModuleUIPanel(VisualElement element) => this.element = element; /// 查询UI元素 public T Q(string name = null, string className = null) where T : VisualElement => element.Q(name, className); } }