# AddAny(ComponentType)

> Obsolete. Use EntityQueryBuilder.WithAny instead.

## Definition

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

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

```csharp
public EntityQueryBuilder AddAny(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.WithAny](/engine/7000.0/script-reference/unity/entities/entityquerybuilder/withany.md) instead.

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