GetEntityTypeHandle()
Manually gets the run-time type information required to access the array of Entity objects in a chunk.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public EntityTypeHandle GetEntityTypeHandle()
Returns
Type | Description |
|---|---|
| EntityTypeHandle | An object representing the type information required to safely access Entity instances stored in a chunk. |
Remarks
Remember to call EntityTypeHandle.Update.
Prefer using SystemAPI.GetEntityTypeHandle in SystemAPI as it will cache in OnCreate for you and call .Update(this) at the call-site.