diff --git a/examples/ui/text_wrap_debug.rs b/examples/ui/text_wrap_debug.rs index 564fd0160845e..842b677be6108 100644 --- a/examples/ui/text_wrap_debug.rs +++ b/examples/ui/text_wrap_debug.rs @@ -89,13 +89,11 @@ fn spawn(mut commands: Commands, asset_server: Res) { linebreak_behavior, }; let text_id = commands - .spawn(( - TextBundle { - text, - ..Default::default() - }, - BackgroundColor(Color::rgb(0.8 - j as f32 * 0.2, 0., 0.)), - )) + .spawn(TextBundle { + text, + background_color: Color::rgb(0.8 - j as f32 * 0.2, 0., 0.).into(), + ..Default::default() + }) .id(); commands.entity(column_id).add_child(text_id); }