# GetEntityTypeHandle()

> Gets the dynamic type object required to access the Entity component of 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) | The run-time type information of the Entity component. |

### Remarks

All chunks have an implicit [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) component referring to the entities in that chunk.

To access any component stored in a chunk, you must have the type registry information for the component. This function provides that information for the implicit [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) component. Use the returned [ComponentTypeHandle\<T>](/engine/7000.0/script-reference/unity/entities/componenttypehandle1.md) object with the functions of an [ArchetypeChunk](/engine/7000.0/script-reference/unity/entities/archetypechunk.md) object to access the component values.
