Files
MuHua-UIElements/Packages/UITool/Runtime/ModuleCoreUI/ModuleUIPanel.cs
T
2025-08-28 14:24:09 +08:00

18 lines
561 B
C#

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