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