IndexOf(VisualElement)
Retrieves the child index of the specified VisualElement.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public int IndexOf(VisualElement element)
Parameters
The child element to retrieve.
Returns
Type | Description |
|---|---|
| int | The index of the child, or -1 if the child is not found. |