Closed arewerage closed 2 years ago
Are you adding the GamePlugin
before the LoadingPlugin
? The stageless state needs to be configured before the loading state.
main.rs:
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use bevy::prelude::{default, App, ClearColor, Color, DefaultPlugins, WindowDescriptor};
use bevy_template::GamePlugin;
fn main() {
App::new()
.insert_resource(ClearColor(Color::GRAY))
.insert_resource(WindowDescriptor {
title: "Bevy Template".to_string(),
width: 1280.0,
height: 720.0,
..default()
})
.add_plugins(DefaultPlugins)
.add_plugin(GamePlugin)
.run();
}
Sorry, I missed the add_plugin
in the GamePlugin
. This looks Ok.
Does the stageless_progress
example run for you?
Is your project code available somewhere (if not I can work with the code blocks above)? I won't be back at my computer for a while, but when I am, I'll take a closer look.
In the next couple of hours I will publish the latest version of the project on github and give a link.
And also check the work of stageless_progress
I realized what the issue was and quickly fixed it. The progress feature was pulling in a different version of iyes_loopless
, so the stage-label types didn't match anymore. Please use a git dependency for iyes_progress
like on main
now and run a cargo update
.
Thank you very much)
When trying to delay the end of loading assets using
iyes_progress
, an error occurs:bevy: 0.7 bevy_asset_loader: branch main
Cargo.toml:
lib.rs:
loading.rs: