HasChunkComponent<T>(Entity)
Checks whether the chunk containing an entity has a specific type of component.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.