bevy/crates/bevy_state
AlephCubed b993202d79
Refactor state scoped events to match entities. (#19435)
This adds support for clearing events when **entering** a state (instead
of just when exiting) and updates the names to match
`DespawnOnExitState`.

Before:
```rust
app.add_state_scoped_event::<MyGameEvent>(GameState::Play);
```
After:
```rust
app
  .add_event::<MyGameEvent>()
  .clear_events_on_exit_state::<MyGameEvent>(GameState::Play);
```
2025-05-31 20:14:14 +00:00
..
macros Enable state scoped entities by default (#19354) 2025-05-26 20:26:41 +00:00
src Refactor state scoped events to match entities. (#19435) 2025-05-31 20:14:14 +00:00
Cargo.toml Simplify bevy_utils Features (#19090) 2025-05-24 01:46:11 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00