Added and Removed query filters. #247
RicardRC
started this conversation in
Ideas & Proposals
Replies: 1 comment 2 replies
-
Yes, you can remove a component that has been added to the changed filters. Check this: https://github.com/GodotECS/godex/blob/main/storage/dense_vector_storage.h#L44-L48 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This way, we can clearly define operations on the three steps of the component lifetime:
On creation, on destruction, and during it's normal life (which can be further filtered using the Changed filter).
As with the changed filter, only do the internal stuff for components wich have any actual usage of the Added and Removed, respectively.
Would it be wise to remove a component that has been added from the Changed filter, or it would be better to keep added components on the results of changed filters?
Beta Was this translation helpful? Give feedback.
All reactions