# Matches

> Obsolete. Use EntityQueryMask.MatchesIgnoreFilter instead.

## Definition

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

## Matches(Entity)

Obsolete. Use [EntityQueryMask.MatchesIgnoreFilter](/engine/7000.0/script-reference/unity/entities/entityquerymask/matchesignorefilter.md) instead.

> **Warning:**
>
> **Removed.** This method has been renamed to MatchesIgnoreFilter, for clarity. It will return false positives if the query uses chunk filtering or enableable components, and should not be used. (RemovedAfter Entities 1.0)

```csharp
public bool Matches(Entity entity)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity to check.

### Returns

| Type                                                          | Description                                                                                                                          |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the entity would be returned by the EntityQuery (ignoring any filtering or enableable components), or false if it would not. |

## Matches(ArchetypeChunk)

Obsolete. Use [EntityQueryMask.MatchesIgnoreFilter](/engine/7000.0/script-reference/unity/entities/entityquerymask/matchesignorefilter.md) instead.

> **Warning:**
>
> **Removed.** This method has been renamed to MatchesIgnoreFilter, for clarity. It will return false positives if the query uses chunk filtering, and should not be used. (RemovedAfter Entities 1.0)

```csharp
public bool Matches(ArchetypeChunk chunk)
```

### Parameters

**** (\[ArchetypeChunk]\(/engine/7000.0/script-reference/unity/entities/archetypechunk)): The chunk to check.

### Returns

| Type                                                          | Description                                                                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the chunk would be returned by the EntityQuery (ignoring any filtering), or false if it would not. |

## Matches(EntityArchetype)

Reports whether the archetype would be selected by the EntityQuery instance used to create this entity query mask.

```csharp
public bool Matches(EntityArchetype archetype)
```

### Parameters

**** (\[EntityArchetype]\(/engine/7000.0/script-reference/unity/entities/entityarchetype)): The archetype to check.

### Returns

| Type                                                          | Description                                                                     |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the entity would be returned by the EntityQuery, false if it would not. |

### Remarks

The match does not consider any filter settings of the EntityQuery.
