public UIElements.TemplateContainer CloneTree ();
public UIElements.TemplateContainer CloneTree (string bindingPath);

参数

bindingPath要绑定到树根克隆体的目标属性的路径。

返回

TemplateContainer 刚克隆的 VisualElements 树的根。

描述

从资源构建 VisualElements 树。


public void CloneTree (UIElements.VisualElement target);

参数

target将充当树克隆体的根的 VisualElement。

描述

从资源构建 VisualElements 树。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961