GetEntityTypeHandle()
Manually gets the run-time type information required to access the array of Entity objects in a chunk.
読み終わるまでの所要時間 1 分最終更新 13日前
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 GetEntityTypeHandle in SystemAPI as it will cache in OnCreate for you and call .Update(this) at the call-site.