文档

Unity Engine

Download Unity

Unity Engine

GetEntityStorageInfoLookup()

Manually gets an EntityStorageInfoLookup object that can access a EntityStorageInfo.
阅读时间1 分钟最后更新于 6 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityStorageInfoLookup GetEntityStorageInfoLookup()

Returns

Type

Description

EntityStorageInfoLookupA dictionary-like object that provides access to information about how Entities are stored, indexed by Entity.

Remarks

Assign the returned object to a field of your Job struct so that you can access the contents in a Job.
Prefer using GetEntityStorageInfoLookup as it will cache in OnCreate for you and call .Update(this) at the call-site.
Additional Resources: EntityStorageInfoLookup