Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
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).
Declaration
public bool
Matches(
Entity entity);
Parameters
| Parameter |
Description |
| entity |
The entity to check. |
Returns
bool
True if the entity would be returned by the EntityQuery (ignoring any filtering or enableable
components), or false if it would not.
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).
Declaration
public bool
Matches(
ArchetypeChunk chunk);
Parameters
| Parameter |
Description |
| chunk |
The chunk to check. |
Returns
bool
True if the chunk would be returned by the EntityQuery (ignoring any filtering), or false if it
would not.
Parameters
| Parameter |
Description |
| archetype |
The archetype to check. |
Returns
bool
True if the entity would be returned by the EntityQuery, false if it would not.
Description
Reports whether the archetype would be selected by the EntityQuery instance used to create this entity query mask.
The match does not consider any filter settings of the EntityQuery.