# Prefab

> Marks the entity as a prefab, which implicitly 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 Prefab : IComponentData, IQueryTypeParameter
```

## Remarks

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