文档

Unity Engine

Download Unity

Unity Engine

IgnoreComponentEnabledState

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.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Field
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
IgnoreComponentEnabledState = 8

Remarks

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.