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 7 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

AddAdd an element to this element's contentContainer
ChildrenReturns the elements from its contentContainer
ClearRemove all child elements from this element's contentContainer
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.
RemoveAtRemove the child element located at this position from this element's contentContainer
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.