# WithChangeFilter

> Only select components in chunks in which the specified component might have changed since the last time the system updated.

## Definition

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

## WithChangeFilter\<T>()

Only select components in chunks in which the specified component might have changed since the last time the system updated.

```csharp
public QueryEnumerableWithEntity<T1, T2> WithChangeFilter<TChangeFilter1>()
```

### Returns

| Type                                                                                                             | Description                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerableWithEntity\<T, U>](/engine/7000.0/script-reference/unity/entities/queryenumerablewithentity2.md) | QueryEnumerableWithEntity, which allows enumerating over all RefRO, RefRW, components, EnabledRefRO, EnabledRefRW and entities that match the constructed Query. |

## WithChangeFilter\<T, U>()

Only select components in chunks in which the specified component might have changed since the last time the system updated.

```csharp
public QueryEnumerableWithEntity<T1, T2> WithChangeFilter<TChangeFilter1, TChangeFilter2>()
```

### Returns

| Type                                                                                                             | Description                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerableWithEntity\<T, U>](/engine/7000.0/script-reference/unity/entities/queryenumerablewithentity2.md) | QueryEnumerableWithEntity, which allows enumerating over all RefRO, RefRW, components, EnabledRefRO, EnabledRefRW and entities that match the constructed Query. |
