Function bevy_ecs::schedule::apply_state_transition
source · pub fn apply_state_transition<S: States>(world: &mut World)
Expand description
If a new state is queued in NextState<S>
, this system:
- Takes the new state value from
NextState<S>
and updatesState<S>
. - Runs the [
OnExit(exited_state)
] schedule. - Runs the [
OnEnter(entered_state)
] schedule.