# GetSharedComponentTypeHandle<T>()

> Manually gets the run-time type information required to access a shared component data in a chunk.

## Definition

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

```csharp
public SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>() where T : struct, ISharedComponentData
```

### Returns

| Type                                                                                                          | Description                                                                                                    |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [SharedComponentTypeHandle\<T>](/engine/7000.0/script-reference/unity/entities/sharedcomponenttypehandle1.md) | An object representing the type information required to safely access shared component data stored in a chunk. |

### Remarks

Remember to call [SharedComponentTypeHandle\<T>.Update](/engine/7000.0/script-reference/unity/entities/sharedcomponenttypehandle1/update.md).

Prefer using [SystemAPI.GetSharedComponentTypeHandle](/engine/7000.0/script-reference/unity/entities/systemapi/getsharedcomponenttypehandle.md) in [SystemAPI](/engine/7000.0/script-reference/unity/entities/systemapi.md) as it will cache in OnCreate for you and call .Update(this) at the call-site.
