Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EntityQueryMask.MatchesIgnoreFilter

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

Cancel

Declaration

public bool MatchesIgnoreFilter(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.

Description

Reports whether an entity's archetype is in the set of archetypes matched by this query.

This function does not consider any chunk filtering settings on the query, or whether the entity has any of the relevant components disabled.


Declaration

public bool MatchesIgnoreFilter(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.

Description

Reports whether a chunk's archetype is in the set of archetypes matched by this query.

This function does not consider any chunk filtering settings on the query.