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);
}
}
X 关闭
Copyright © 2015-2022 亚洲商报网版权所有 备案号:京ICP备2021034106号-51 联系邮箱:5 516 538 @qq.com