Method Matches
Matches(Entity)
Obsolete. Use MatchesIgnoreFilter(Entity) instead.
Declaration
[Obsolete("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)", true)]
public bool Matches(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | 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 MatchesIgnoreFilter(ArchetypeChunk) instead.
Declaration
[Obsolete("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)", true)]
public bool Matches(ArchetypeChunk chunk)
Parameters
Type | Name | Description |
---|---|---|
ArchetypeChunk | chunk | 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.
Declaration
public bool Matches(EntityArchetype archetype)
Parameters
Type | Name | Description |
---|---|---|
EntityArchetype | archetype | 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.