Version: 2020.3

VisualTreeAsset

class in UnityEngine.UIElements

切换到手册

描述

An instance of this class holds a tree of `VisualElementAsset`s, created from a UXML file. Each node in the file corresponds to a `VisualElementAsset`. You can clone a `VisualTreeAsset` to yield a tree of `VisualElement`s.

变量

contentHashA hash value computed from the template content.
stylesheetsThe stylesheets used by this VisualTreeAsset.
templateDependenciesThe UXML templates used by this VisualTreeAsset.

构造函数

VisualTreeAsset构造函数。

公共函数

CloneTree从资源构建 VisualElements 树。
Instantiate从资源构建 VisualElements 树。