Skip to content
Discussion options

You must be logged in to vote

And the answer is.....🥁🥁🥁 Clearing up!

    let mut chk = true;
    loop {
        if chk {
            let plugins_state = app.plugins_state();
            if plugins_state != PluginsState::Cleaned {
                println!(">>>>>>>> I'm {:?}", plugins_state);
                while app.plugins_state() == PluginsState::Adding {
                    bevy::tasks::tick_global_task_pools_on_main_thread();
                    println!("<<<<<< TICKITY I'm {:?}", plugins_state);
                }
                app.finish();
                app.cleanup();
            }
            chk = false;
        }
        app.update();
        std::thread::sleep(Duration::from_secs_f32(0.1));
    }

What it…

Replies: 1 comment

Comment options

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