# Disabled

> Disables the entity.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [IComponentData](/engine/7000.0/script-reference/unity/entities/icomponentdata.md), [IQueryTypeParameter](/engine/7000.0/script-reference/unity/entities/iquerytypeparameter.md)

```csharp
public struct Disabled : IComponentData, IQueryTypeParameter
```

## Remarks

By default, an [EntityQuery](/engine/7000.0/script-reference/unity/entities/entityquery.md) ignores all entities that have this component. You can override this default behavior by setting the `EntityQueryOptions.IncludeDisabledEntities` flag of the [EntityQueryDesc](/engine/7000.0/script-reference/unity/entities/entityquerydesc.md) object used to create the query.

Additional Resources: IsEnabled(Entity), SetEnabled(Entity, bool)
