文档

Unity Engine

Unity Engine

Contains(T)

Returns true if a given item is present in this hash set.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

item

T
The item to look up.

Returns

Type

Description

boolTrue if the item was present.