Run conditions for specific state transitions #7647
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
Milestone
What problem does this solve or what need does it fill?
I want to be able to run some cleanup logic only during a specific state transition.
What solution would you like?
Access to either
previous_state + current_state
, orcurrent_state + next_state
during anon_exit
system.What alternative(s) have you considered?
Currently my cleanup logic is held in the system that starts the state transition.
Additional Notes
The short discussion in discord, prior to filing this issue: https://discord.com/channels/691052431525675048/742569353878437978/1074101538802389012
The text was updated successfully, but these errors were encountered: