2
0
Fork 0
mirror of https://github.com/bevyengine/bevy synced 2024-12-30 06:53:13 +00:00
bevy/examples/state
François Mockers fcfb685821
enable_state_scoped_entities() as a derive attribute ()
# 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
2024-12-01 20:09:36 +00:00
..
computed_states.rs Use en-us locale for typos () 2024-10-20 18:55:17 +00:00
custom_transitions.rs Merge Style properties into Node. Use ComputedNode for computed properties. () 2024-10-18 22:25:33 +00:00
states.rs Merge Style properties into Node. Use ComputedNode for computed properties. () 2024-10-18 22:25:33 +00:00
sub_states.rs enable_state_scoped_entities() as a derive attribute () 2024-12-01 20:09:36 +00:00