Matches
Obsolete. Use EntityQueryMask.MatchesIgnoreFilter instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
Matches(Entity)
Obsolete. Use EntityQueryMask.MatchesIgnoreFilter instead.
public bool Matches(Entity entity)
Parameters
The entity to check.
Returns
Type | Description |
|---|---|
| bool | 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 instead.
public bool Matches(ArchetypeChunk chunk)
Parameters
The chunk to check.
Returns
Type | Description |
|---|---|
| bool | 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.
public bool Matches(EntityArchetype archetype)
Parameters
The archetype to check.
Returns
Type | Description |
|---|---|
| bool | 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.