文档

Unity Engine

Unity Engine

this[]

Returns the element at the specified index in the hierarchy
阅读时间1 分钟最后更新于 1 个月前

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.