mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 10:33:08 +00:00
fcfb685821
# Objective - I got tired of calling `enable_state_scoped_entities`, and though it would make more sense to define that at the place where the state is defined ## Solution - add a derive attribute `#[states(scoped_entities)]` when derive `States` or `SubStates` that enables it automatically when adding the state ## Testing - Ran the examples using it, they still work |
||
---|---|---|
.. | ||
computed_states.rs | ||
custom_transitions.rs | ||
states.rs | ||
sub_states.rs |