Documentation

Unity Engine

Unity Engine

IndexOf(VisualElement)

Retrieves the index of the specified VisualElement in the Hierarchy.
Read time 1 minuteLast updated 2 months ago

Definition

public int IndexOf(VisualElement element)

Parameters

The element to return the index for.

Returns

Type

Description

intThe index of the element, or -1 if the element is not found.