I’m trying to make the billboard text string break on a verse code. Even if I write the escape sequence (?) “\n” in the example code in the official documentation, the line break doesn’t occur. How can I write it to make the line break?
It works for me, for example “Holo\nTwisters” shows as
Holo
Twisters
since I have the billboard set to center alignment.
Thank you for your reply. Your reply solved the basic usage. I was worried about two sentences, but at the time of the question, I myself did not know the difference between one sentence and multiple sentences. In other words, what I was trying to do was to put ‘\n’ at the end of the first sentence and start a new line for the second sentence, which was not the usage of “putting ‘\n’ in the middle of a sentence (= in the middle of a sentence) to start a new line” as stated in the official documentation. In the first place, I had not realized that billboards seem to have a specification for “displaying one sentence”. Thank you very much btwixer for your reply.
(post deleted by author)
I had something similar in a project with a billboard truck where I needed clean line breaks. What worked for me was using a custom text wrapping system with RichTextBlock and adding \n in the source string through C++. Also make sure you’re not overriding line spacing or wrapping settings somewhere deeper in your widget hierarchy that might mess with your line feeds.