ドキュメント

Unity Engine

Unity Engine

TryAdd(T)

Adds a new value. If the item is already present, this method returns false without replacing said item.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool TryAdd(T item)

Parameters

item

T
The value to add.

Returns

Type

Description

boolTrue if the value is not already present.