# AddSharedComponentFilter<SharedComponent>(SharedComponent)

> Filters this EntityQuery so that it only selects entities with an unmanaged shared component of type SharedComponent equal to sharedComponent. Additive with other filter functions.

## Definition

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

## AddSharedComponentFilter\<T>(T)

```csharp
public void AddSharedComponentFilter<SharedComponent>(SharedComponent sharedComponent) where SharedComponent : unmanaged, ISharedComponentData
```

### Parameters

**** (T): The unmanaged shared component value to filter.
