Version: 2021.1
public UIElements.TemplateContainer CloneTree ();
public UIElements.TemplateContainer CloneTree (string bindingPath);

参数

bindingPath The path to the property that you want to bind to the root of the cloned tree.

返回

TemplateContainer 刚克隆的 VisualElements 树的根。

描述

从资源构建 VisualElements 树。

This function will be deprecated. Use VisualElement.Instantiate instead.


public void CloneTree (UIElements.VisualElement target);

参数

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

描述

Builds a tree of VisualElements from the asset.