VisualElement.Hierarchy
Hierarchy is a struct allowing access to the hierarchy of visual elements
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public struct VisualElement.Hierarchy
Properties
Property | Description |
|---|---|
| childCount | Number of child elements in this object's contentContainer |
| this[] | Returns the element at the specified index in the hierarchy |
| parent | The physical parent of this element in the hierarchy. |
Methods
Method | Description |
|---|---|
| Add | Adds an element to this element's |
| Children | Returns the physical children of the element. |
| Clear | Removes all child elements from this element's hierarchy. |
| ElementAt | Retrieves the child element at position |
| Equals | Compares instances of the Hierarchy struct for equality. |
| IndexOf | Retrieves the index of the specified VisualElement in the Hierarchy. |
| Insert | Insert an element into this element's contentContainer |
| Remove | Removes this child from the hierarchy. |
| RemoveAt | Removes a child, at the provided index, from the contentContainer of the current element. |
| Sort | Reorders 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. |