You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing the startup_system example, with cargo run --example startup_system
What you expected to happen
The Terminal should print:
startup system ran first
normal system ran second
What actually happened
The Terminal only printed:
normal system ran second
Additional information
The problem is that startup systems are only run, when app.initialize(); is called, and the only places where this is done is in the ScheduleRunnerPlugin and the WinitPlugin.
fn main() {
App::build()
// Neccesary plugins to avoid Panics
.add_plugin(bevy_input::InputPlugin::default())
.add_plugin(bevy_window::WindowPlugin::default())
// Plugin that allows startup_system to be run
.add_plugin(bevy_winit::WinitPlugin::default())
.add_startup_system(startup_system.system())
.add_system(normal_system.system())
.run();
}
Output:
startup system ran first
normal system ran second
normal system ran second
normal system ran second
normal system ran second
normal system ran second
[...]
The text was updated successfully, but these errors were encountered:
Bevy version
a7565e9
Operating system & version
Windows 10 64bit
What you did
I was testing the
startup_system
example, withcargo run --example startup_system
What you expected to happen
The Terminal should print:
What actually happened
The Terminal only printed:
Additional information
The problem is that startup systems are only run, when
app.initialize();
is called, and the only places where this is done is in theScheduleRunnerPlugin
and theWinitPlugin
.Code:
Output:
Code:
Output:
The text was updated successfully, but these errors were encountered: