bevy/release-content/migration-guides/state_scoped_entities_by_default.md
François Mockers 8a223be651
Enable state scoped entities by default (#19354)
# Objective

- Enable state scoped entities by default
- Provide a way to disable it when needed

---------

Co-authored-by: Ben Frankel <ben.frankel7@gmail.com>
2025-05-26 20:26:41 +00:00

447 B

title pull_requests
Entities are now state scoped by default
19354

State scoped entities is now enabled by default, and you don't need to call app.enable_state_scoped_entities::<State>() anymore.

If you were previously adding the #[states(scoped_entities)] attribute when deriving the States trait, you can remove it.

If you want to keep the previous behavior, you must add the attribute #[states(scoped_entities = false)].