文档

Unity Engine

Download Unity

Unity Engine

Contains(T)

Check if the list contains a specific element
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool Contains(T item)

Parameters

item

T
The itme to search for

Returns

Type

Description

boolTrue if the element is found in the list, or false if not.