Trait bevy::state::state::FreelyMutableState

pub trait FreelyMutableState: States {
    // Provided method
    fn register_state(schedule: &mut Schedule) { ... }
}
Expand description

This trait allows a state to be mutated directly using the NextState<S> resource.

While ordinary states are freely mutable (and implement this trait as part of their derive macro), computed states are not: instead, they can only change when the states that drive them do.

Provided Methods§

fn register_state(schedule: &mut Schedule)

This function registers all the necessary systems to apply state changes and run transition schedules

Object Safety§

This trait is not object safe.

Implementors§