文档

Unity Engine

Unity Engine

GetEntityTypeHandle()

Manually gets the run-time type information required to access the array of Entity objects in a chunk.
阅读时间1 分钟最后更新于 5 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityTypeHandle GetEntityTypeHandle()

Returns

Type

Description

EntityTypeHandleAn 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.