NEOLearn

State examples

The engine's state examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

App states, sub-states, computed states and custom transitions. There are 4 examples on this page. For the concepts behind them, see States.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Computed StatesAdvanced state patterns using Computed States.Nocargo run --example computed_states --features neo_dev_tools
Custom State Transition BehaviorCreating and working with custom state transition schedules.Nocargo run --example custom_transitions --features neo_dev_tools
StatesIllustrates how to use States to control transitioning from a Menu state to an InGame state.Nocargo run --example states
Sub StatesUsing Sub States for hierarchical state handling.Nocargo run --example sub_states --features neo_dev_tools

See also#