Documentation

Unity Engine

Download Unity

Unity Engine

Contains(T)

Returns true if a particular value is present.
Read time 1 minuteLast updated 3 hours ago

Definition

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

Parameters

item

T
The value to check for.

Returns

Type

Description

boolTrue if the value was present.