Children()
Returns the elements from its contentContainer.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public IEnumerable<VisualElement> Children()
Returns
Type | Description |
|---|---|
| IEnumerable<VisualElement> |
Remarks
The elements returned by this method are the logical children of the element. This might differ from the physical children of the element if the element's contentContainer property doesn't return the element itself. For more information, refer to VisualElement.contentContainer.
To access the physical children of the element, use VisualElement.Hierarchy.Children.
Additional Resources: VisualElement.contentContainer, VisualElement.hierarchy