Module bevy::state::state_scoped
source · Expand description
Provides [StateScoped
] and [clear_state_scoped_entities
] for managing lifetime of entities.
Structs§
- Entities marked with this component will be removed when the world’s state of the matching type no longer matches the supplied value.
Functions§
- Removes entities marked with
StateScoped<S>
when their state no longer matches the world state.