Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IndexOf(VisualElement)

Retrieves the child index of the specified VisualElement.
Read time 1 minuteLast updated 4 days ago

Definition

public int IndexOf(VisualElement element)

Parameters

The child element to retrieve.

Returns

Type

Description

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