ドキュメント

Unity Engine

Download Unity

Unity Engine

HasComponent(Entity)

Obsolete. Use BufferLookup<T>.HasBuffer instead.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
Deprecated. This method has been renamed to HasBuffer(). (RemovedAfter Entities 1.0)
public bool HasComponent(Entity entity)

Parameters

entity

The entity.

Returns

Type

Description

boolTrue if the entity has a buffer component of type T, and false if it does not. Also returns false if the Entity instance refers to an entity that has been destroyed.