# WithDisabled

> Specify all read-only component types that must be present AND disabled.

## Definition

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

## WithDisabled\<T>()

Specify all read-only component types that must be present AND disabled.

```csharp
public QueryEnumerable<T1, T2, T3> WithDisabled<TComponent1>() where TComponent1 : unmanaged, IEnableableComponent
```

### Returns

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

## WithDisabled\<T, U>()

Specify all read-only component types that must be present AND disabled.

```csharp
public QueryEnumerable<T1, T2, T3> WithDisabled<TComponent1, TComponent2>() where TComponent1 : unmanaged, IEnableableComponent where TComponent2 : unmanaged, IEnableableComponent
```

### Returns

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

## WithDisabled\<T, U, V>()

Specify all read-only component types that must be present AND disabled.

```csharp
public QueryEnumerable<T1, T2, T3> WithDisabled<TComponent1, TComponent2, TComponent3>() where TComponent1 : unmanaged, IEnableableComponent where TComponent2 : unmanaged, IEnableableComponent where TComponent3 : unmanaged, IEnableableComponent
```

### Returns

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