Documentation

Unity Engine

Download Unity

Unity Engine

this[]

Returns the element at the specified index in the hierarchy
Read time 1 minuteLast updated 2 months 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.