# GetSharedComponentDataUnmanaged<T>(SharedComponentTypeHandle<T>)

> Obsolete. Use ArchetypeChunk.GetSharedComponent instead.

## Definition

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

> **Warning:**
>
> **Removed.** Use GetSharedComponent
>
> **Upgrade to** [ArchetypeChunk.GetSharedComponent](/engine/7000.0/script-reference/unity/entities/archetypechunk/getsharedcomponent.md)

```csharp
public T GetSharedComponentDataUnmanaged<T>(SharedComponentTypeHandle<T> chunkSharedComponentData) where T : unmanaged, ISharedComponentData
```

### Parameters

**** (\[SharedComponentTypeHandle\<T>]\(/engine/7000.0/script-reference/unity/entities/sharedcomponenttypehandle1)): An object containing type and job safety information. To create this object, call [ComponentSystemBase.GetSharedComponentTypeHandle](/engine/7000.0/script-reference/unity/entities/componentsystembase/getsharedcomponenttypehandle.md).

### Returns

| Type | Description                 |
| ---- | --------------------------- |
| T    | The shared component value. |
