GetEntityStorageInfoLookup()
Manually gets an EntityStorageInfoLookup object that can access a EntityStorageInfo.
阅读时间1 分钟最后更新于 5 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public EntityStorageInfoLookup GetEntityStorageInfoLookup()
Returns
Type | Description |
|---|---|
| EntityStorageInfoLookup | An dictionary-like object that provides access to information about how Entities are stored, indexed by Entity. |
Remarks
Remember to call EntityStorageInfoLookup.Update.
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