# GetSharedComponentDataBoxed(int, TypeIndex)

> Retrieves a shared component value as a managed boxed object.

## Definition

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

```csharp
[ExcludeFromBurstCompatTesting("Accesses managed component store")]
public object GetSharedComponentDataBoxed(int sharedComponentIndex, TypeIndex typeIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The shared component index**** (\[TypeIndex]\(/engine/7000.0/script-reference/unity/entities/typeindex)): The type index

### Returns

| Type                                                           | Description                                       |
| -------------------------------------------------------------- | ------------------------------------------------- |
| [Object](https://learn.microsoft.com/dotnet/api/system.object) | The shared component value, boxed into an object. |

### Remarks

This API is for debugging or performance-insensitive purposes.

Additional Resources: [EntityManager.GetSharedComponent](/engine/7000.0/script-reference/unity/entities/entitymanager/getsharedcomponent.md)
