HasComponent(Entity)
Obsolete. Use BufferLookup<T>.HasBuffer instead.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public bool HasComponent(Entity entity)
Parameters
The entity.
Returns
Type | Description |
|---|---|
| bool | True 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. |