using ;
using ;
(相关资料图)
using UnityEditor;
using UnityEngine;
using ;
public class UIData : VisualElement
{
public new class UxmlFactory : UxmlFactory<UIData> { } //这句是为了显示在UiBuilder中
private readonly TemplateContainer _root;
public UIData()
{
//具体UI可在UiBuilder中用Create Templates创建。为了加载,将其放在Resources下。
_root = <VisualTreeAsset>("MyUI").Instantiate();
(_root);
}
}