- Home /
GUI Text and 3D Text Editing
According to Reference help manual, the following Hint is written: "When entering text into the Text property, you can create a line break by holding Alt and pressing Return."
When I follow the instructions, in the Inspector pane, nothing happens. There is no line break. Is that a bug in software?
Answer by Justin Warner · Dec 31, 2010 at 03:47 PM
Do \n instead...
That will just cause the actual characters "\n" to appear in your string. This is about entering text in the inspector; alt-return works fine here.
on c# the "\n" works, on js i dont know if the line break works with that, also the "\r\n" could do the work.
Okay, than make the text and array, it'll break line than...
Answer by maikkel · Feb 14, 2011 at 10:18 PM
Found the solution in the forums: http://forum.unity3d.com/threads/30381-Line-break?p=198023#post198023
"If you mean entering text into Unity's text field, the 'alt-return' shortcut seems to be broken on windows. You can get around this by copying and pasting a return character from some other text program such as notepad."
Your answer
Follow this Question
Related Questions
what is the correct way to display text on screen 1 Answer
How to Load Text From External Text Document for GuiText by java Script... 1 Answer
guiText.Text do not display text correctly 2 Answers
guitext.text wont change to assigned string on Android 0 Answers
Problem with fonts with ttf format 2 Answers