ドキュメント

Unity Engine

Unity Engine

TryAdd(T)

Attempts to add a new item. Only succeeds if the item was not present.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public bool TryAdd(T item)

Parameters

item

T
The value to add.

Returns

Type

Description

boolTrue if the value was not already present (thus was successfully added).