# GetChunkComponentData<T>(ref ComponentTypeHandle<T>)

> Gets the value of a chunk component.

## Definition

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

## GetChunkComponentData\<T>(ComponentTypeHandle\<T>)

```csharp
public readonly T GetChunkComponentData<T>(ref ComponentTypeHandle<T> typeHandle) where T : struct
```

### Parameters

**** (\[ComponentTypeHandle\<T>]\(/engine/7000.0/script-reference/unity/entities/componenttypehandle1)): An object containing type and job safety information. To create this object, call [ComponentSystemBase.GetComponentTypeHandle](/engine/7000.0/script-reference/unity/entities/componentsystembase/getcomponenttypehandle.md). Pass the object to a job using a public field you define as part of the job struct.

### Returns

| Type | Description                    |
| ---- | ------------------------------ |
| T    | A copy of the chunk component. |

### Remarks

Additional Resources: [ArchetypeChunk.SetChunkComponentData](/engine/7000.0/script-reference/unity/entities/archetypechunk/setchunkcomponentdata.md)
