Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VisualElement.Hierarchy

Hierarchy is a struct allowing access to the hierarchy of visual elements
Read time 1 minuteLast updated 6 days ago

Definition

public struct VisualElement.Hierarchy

Properties

Property

Description

childCountNumber of child elements in this object's contentContainer
this[]Returns the element at the specified index in the hierarchy
parentThe physical parent of this element in the hierarchy.

Methods

Method

Description

AddAdds an element to this element's
contentContainer
.
ChildrenReturns the physical children of the element.
ClearRemoves all child elements from this element's hierarchy.
ElementAtRetrieves the child element at position
EqualsCompares instances of the Hierarchy struct for equality.
IndexOfRetrieves the index of the specified VisualElement in the Hierarchy.
InsertInsert an element into this element's contentContainer
RemoveRemoves this child from the hierarchy.
RemoveAtRemoves a child, at the provided index, from the contentContainer of the current element.
SortReorders child elements from this VisualElement contentContainer.

Operators

Operator

Description

operator ==Compares instances of the Hierarchy struct for equality.
operator !=Compares instances of the Hierarchy struct for inequality.