Files
MuHua-Core/Packages/UIControl/Runtime/UIViewModel/UIViewModel.cs
T
2024-11-15 18:28:21 +08:00

15 lines
440 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
namespace MuHua {
public class UIViewModel : MonoBehaviour {
public UIDocument document;
public VisualElement element => document.rootVisualElement;
public T Q<T>(string name = null, string className = null) where T : VisualElement {
return element.Q<T>(name, className);
}
}
}