# AddAll(ComponentType)

> Obsolete. Use EntityQueryBuilder.WithAll instead.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use WithAll\<T,...> instead, or WithAll(INativeList) if component types are not known at compile time. (RemovedAfter Entities 1.0)

```csharp
public EntityQueryBuilder AddAll(ComponentType t)
```

### Parameters

**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The component type

### Returns

| Type                                                                                       | Description                                  |
| ------------------------------------------------------------------------------------------ | -------------------------------------------- |
| [EntityQueryBuilder](/engine/7000.0/script-reference/unity/entities/entityquerybuilder.md) | The builder object that invoked this method. |

### Remarks

**Obsolete.** Use [EntityQueryBuilder.WithAll](/engine/7000.0/script-reference/unity/entities/entityquerybuilder/withall.md) instead.

Add an "all" matching type to the current query.
