# Where(Func<T, bool>)

> Selects all elements satifying the predicate.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public UQueryBuilder<T> Where(Func<T, bool> selectorPredicate)
```

### Parameters

**** (\[Func\<T, bool>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Predicate that must return true for selected elements.

### Returns

| Type                                                                                          | Description                                                  |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [UQueryBuilder\<T>](/engine/6000.0/script-reference/unityengine/uielements/uquerybuilder1.md) | QueryBuilder configured with the associated selection rules. |
