Allow multiple component hooks for a given Component #12647
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
X-Controversial
There is active debate or serious implications around merging this PR
What problem does this solve or what need does it fill?
It could be useful to have multiple component hooks for a given Component.
A usecase would be to allow libraries to create component-hooks that won't be overriden by the user.
For example, you could imagine bevy_ecs wanting to update change detection ticks via component hooks, while still allowing the user to define their own component hooks.
PROS:
CONS:
What solution would you like?
Letting
ComponentHooks
store multiple hooks of a given type (on_add, on_remove, etc.) for a component.What alternative(s) have you considered?
The text was updated successfully, but these errors were encountered: