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

EntityQueryOptions.IgnoreComponentEnabledState

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

Description

The query will match all entities in all the query's matching archetypes, regardless of whether any enableable components on those entities are enabled or disabled.

Specifically: - Entities with all required enableable components will be matched, even if the components are disabled.
- Entities with any optional enableable components will be matched, even if the components are disabled.
- Entities with any excluded enableable component will be matched, even if the components are enabled.
- Entities with any excluded non-enableable component will NOT be matched; their archetype is not in the potentially matching set.
- Entities missing a required component will NOT be matched; their archetype is not in the potentially matching set.
- Entities missing all the optional components will NOT be matched; their archetype is not in the potentially matching set.