diff --git a/crates/bevy_text/src/draw.rs b/crates/bevy_text/src/draw.rs index a6c8e7e6d439f4..b47c6e4dd543a3 100644 --- a/crates/bevy_text/src/draw.rs +++ b/crates/bevy_text/src/draw.rs @@ -84,6 +84,11 @@ impl<'a> Drawable for DrawableText<'a> { // set local per-character bindings for character in self.text.chars() { if character.is_control() { + if character == '\n' { + caret.set_x(self.position.x()); + // TODO: Necessary to also calculate scaled_font.line_gap() in here? + caret.set_y(caret.y() - scaled_font.height()); + } continue; }