# GetEntityTypeHandle()

> Manually gets the runtime type information required to access the array of Entity objects in a chunk.

## Definition

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

```csharp
public EntityTypeHandle GetEntityTypeHandle()
```

### Returns

| Type                                                                                   | Description                                                                                                  |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [EntityTypeHandle](/engine/7000.0/script-reference/unity/entities/entitytypehandle.md) | An object that represents the type information required to safely access Entity instances stored in a chunk. |

### Remarks

To make sure the entity type handle is up to date, call  [EntityTypeHandle.Update](/engine/7000.0/script-reference/unity/entities/entitytypehandle/update.md) before you use this method. It's best practice to use [SystemAPI.GetEntityTypeHandle](/engine/7000.0/script-reference/unity/entities/systemapi/getentitytypehandle.md) instead of this method because `SystemAPI.GetEntityTypeHandle` caches in OnCreate for you and calls Update(ref SystemState) at the call-site.
