Instantiate
Build a tree of VisualElements from the asset.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
Instantiate()
Build a tree of VisualElements from the asset.
public TemplateContainer Instantiate()
Returns
Type | Description |
|---|---|
| TemplateContainer | The root of the tree of VisualElements that was just cloned. |
Instantiate(string)
Build a tree of VisualElements from the asset.
public TemplateContainer Instantiate(string bindingPath)
Parameters
The path to the property that you want to bind to the root of the cloned tree.
Returns
Type | Description |
|---|---|
| TemplateContainer | The root of the tree of VisualElements that was just cloned. |