HasChunkComponent<T>(Entity)
Checks whether the chunk containing an entity has a specific type of component.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public bool HasChunkComponent<T>(Entity entity)
Parameters
The Entity object.
Returns
Type | Description |
|---|---|
| bool | True, if the chunk containing the specified entity has the component. |
Remarks
Always returns false for an entity that has been destroyed.