Fixed README setup example

This commit is contained in:
Silas Bartha 2024-08-04 13:25:13 -04:00
parent 017228ffbd
commit e9e89ef02f
Signed by: soaos
GPG Key ID: 9BD3DCC0D56A09B2

View File

@ -40,7 +40,10 @@ use bevy_headless_render;
fn main() { fn main() {
App::new() App::new()
.add_plugins(( .add_plugins((
DefaultPlugins, DefaultPlugins
.build()
.disable::<WinitPlugin>(),
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f32(1.0 / TICK_RATE)),
bevy_headless_render::HeadlessRenderPlugin, bevy_headless_render::HeadlessRenderPlugin,
)) ))
.run(); .run();