Add a Includes
query filter for working with disabling components
#17803
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Originally posted by @SkiFire13 in #17768 (comment)
When working with default query filters, it's reasonably common to want to be agnostic to the presence of a given disabling component.
Currently, users can stick a
Has
orOption
query data term in there, and get the desired behavior, but they often don't want the information contained in that term.We should provide them with a query filter equivalent, which I think should be called
Includes<C>
. This filter would be absolutely useless for normal components, as it includes entities with or without C. But if we set the access up correctly, this should trick DQF into showing us the entities we want, regardless of whether or not they have C.The text was updated successfully, but these errors were encountered: