This version of Unity is unsupported.

VisualElement.IndexOf

Declaration

public int IndexOf(UIElements.VisualElement element);

Parameters

element The child element to retrieve.

Returns

int The index of the child, or -1 if the child is not found.

Description

Retrieves the child index of the specified VisualElement.