VisualTreeAsset

class in UnityEngine.UIElements

Cambiar al Manual

Descripción

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.

Variables

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

Constructores

VisualTreeAssetConstructor.

Funciones Públicas

CloneTreeBuild a tree of VisualElements from the asset.
InstantiateBuild a tree of VisualElements from the asset.