GetEntityOffsets(TypeIndex, out int)
Gets a pointer to entity offsets for a given type index.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetEntityOffsets(TypeIndex, int)
public static TypeManager.EntityOffsetInfo* GetEntityOffsets(TypeIndex typeIndex, out int count)
Parameters
Returns
Type | Description |
|---|---|
| EntityOffsetInfo* | Returns a pointer to the entity offsets. |
Remarks
This always returns a pointer even if the given type has no entity offsets. Always check and iterate over the returned pointer using the returned count.