Skip to content
Discussion options

You must be logged in to vote

The MinimalPlugins PluginGroup provides you with a headless runtime, which includes a schedule runner via the ScheduleRunnerPlugin.

Example Usage:

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(MinimalPlugins)
        .add_systems(Update, my_system)
        .run();
}

fn my_system(counter: Local<u32>) {
    *counter += 1;
    println!("Counter: {}", *counter);
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Wandalen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants