diff --git a/examples/tools/gamepad_viewer.rs b/examples/tools/gamepad_viewer.rs index d1fe5dd328727..a191f81f07dbb 100644 --- a/examples/tools/gamepad_viewer.rs +++ b/examples/tools/gamepad_viewer.rs @@ -106,17 +106,17 @@ fn main() { } fn setup(mut commands: Commands, meshes: Res, materials: Res) { - commands.spawn_bundle(Camera2dBundle::default()); + commands.spawn(Camera2dBundle::default()); // Buttons commands - .spawn_bundle(SpatialBundle { + .spawn(SpatialBundle { transform: Transform::from_xyz(BUTTONS_X, BUTTONS_Y, 0.), ..default() }) .with_children(|parent| { - parent.spawn_bundle(( + parent.spawn(( MaterialMesh2dBundle { mesh: meshes.circle.clone(), material: materials.normal.clone(), @@ -125,7 +125,7 @@ fn setup(mut commands: Commands, meshes: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res, materials: Res) { font_size: 30., font: font.clone(), }; - commands.spawn_bundle(( + commands.spawn(( TextBundle::from_sections([ TextSection { value: "Connected Gamepads\n".to_string(),