Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IndexOf(VisualElement)

Retrieves the index of the specified VisualElement in the Hierarchy.
Read time 1 minuteLast updated 10 days 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.