Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


this[]

Returns the element at the specified index in the hierarchy
Read time 1 minuteLast updated 12 days ago

Definition

this[int]

public VisualElement this[int key] { get; }

Parameters

key

The index of the child

Returns

Type

Description

VisualElementThe VisualElement at this index

Remarks

Throws an IndexOutOfRangeException exception if the index is invalid.