# GetEntityOffsets(TypeIndex, out int)

> Gets a pointer to entity offsets for a given type index.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## GetEntityOffsets(TypeIndex, int)

```csharp
public static TypeManager.EntityOffsetInfo* GetEntityOffsets(TypeIndex typeIndex, out int count)
```

### Parameters

**** (\[TypeIndex]\(/engine/7000.0/script-reference/unity/entities/typeindex)): The TypeIndex to review.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                                                 | Description                              |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [EntityOffsetInfo\*](/engine/7000.0/script-reference/unity/entities/typemanager/entityoffsetinfo.md) | 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.
