using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
namespace MuHua {
///
/// 页面模块
///
public class ModuleUIPage : MonoBehaviour {
/// 绑定文档
public UIDocument document;
/// 根目录文档
public VisualElement root => document.rootVisualElement;
/// 添加UI元素
public void Add(VisualElement child) => root.Add(child);
/// 查询UI元素
public T Q(string name = null, string className = null) where T : VisualElement => root.Q(name, className);
}
}