Scripting API

VisualTreeAsset

class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from ScriptableObject

6 of 8 of Unity's membersUnity's documentation
In Tassix

A UXML document: a tree of elements that clones into a hierarchy, with its style sheets and templates.

Properties 3

int contentHash { get; set; }
IEnumerable<StyleSheet> stylesheets { get; }

The style sheets the document's <Style> elements name.

IEnumerable<VisualTreeAsset> templateDependencies { get; }

The templates the document's <Template> elements name.

Methods 2

TemplateContainer CloneTree()
TemplateContainer CloneTree(string bindingPath)
void CloneTree(VisualElement target)
void CloneTree(VisualElement target, out int firstElementIndex, out int elementAddedCount)
TemplateContainer Instantiate()
TemplateContainer Instantiate(string? bindingPath)

Not in Tassix yet 2

importedWithErrors importedWithWarnings