We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparently Text (docs) does not support multi line strings. Not sure if this is expected (but undocumented) behavior or a bug?
Text
I simply made the following change to the examples/ui/text.rs example:
examples/ui/text.rs
diff --git a/examples/ui/text.rs b/examples/ui/text.rs index ecd7f081..c511ef38 100644 --- a/examples/ui/text.rs +++ b/examples/ui/text.rs @@ -17,7 +17,7 @@ fn text_update_system(diagnostics: Res<Diagnostics>, mut query: Query<&mut Text> for mut text in &mut query.iter() { if let Some(fps) = diagnostics.get(FrameTimeDiagnosticsPlugin::FPS) { if let Some(average) = fps.average() { - text.value = format!("FPS: {:.2}", average); + text.value = format!("FPS: {:.2}\nsecond line", average); } } }
Expected behavior: two lines of output
Actual behavior: single line of output:
The text was updated successfully, but these errors were encountered:
Yeah this is an expected behavior. We just haven't implemented line breaking yet. Thanks for the pr!
Sorry, something went wrong.
Fixed by #183 and #765
No branches or pull requests
Apparently
Text
(docs) does not support multi line strings. Not sure if this is expected (but undocumented) behavior or a bug?I simply made the following change to the
examples/ui/text.rs
example:Expected behavior: two lines of output
Actual behavior: single line of output:
The text was updated successfully, but these errors were encountered: