So I have two IEnableableComponents, Changed and Active. I want to create a query where Changed is enabled but doesn’t matter for Active. I want both enabled or not or rather I want entities with this component. I would just then use ArchetypeChunk.IsComponentEnabled() for it. I know there’s EntityQueryOptions.IgnoreComponentEnabledState but that’s for the whole query, not for individual components. I wish EntityQueryBuilder would have WithEnabled(). That would make the intent more clear. How do I do this?
Nvm, I found WithPresent().
2 Likes