diff --git a/crates/bevy_text/src/draw.rs b/crates/bevy_text/src/draw.rs index 52fc7127eff4c..241e4cc29252d 100644 --- a/crates/bevy_text/src/draw.rs +++ b/crates/bevy_text/src/draw.rs @@ -83,6 +83,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; }