文档

Unity Engine


User Manual

Script Reference

Unity Engine


this[]

Gets values by key.
阅读时间1 分钟最后更新于 1 个月前

Definition

this[T]

public readonly TValue this[TKey key] { get; }

Parameters

key

T
The key to look up.

Returns

Type

Description

T

Remarks

Getting a key that is not present will throw.