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

EntityQuery.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 e);

Parameters

Parameter Description
e The entity to check for match

Returns

bool True if the entity's archetype is matched by the query, or false if not.

Description

Returns true if the entity's archetype is matched by this query, ignoring all query filtering (including chunk filters and enableable components).

This function creates an EntityQueryMask, if one does not exist for this query already. A maximum of 1024 EntityQueryMasks can be allocated per World. This function throws an exception if the query contains enableable components.

Additional resources: EntityQuery.Matches