Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Children()

Returns the elements from its contentContainer.
Read time 1 minuteLast updated 6 days ago

Definition

public IEnumerable<VisualElement> Children()

Returns

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 _contentContainer.
To access the physical children of the element, use VisualElement.Hierarchy.Children.
Additional Resources: _contentContainer, _hierarchy