- Home /
Formatting Text
I want my Text like this:
Blabla:blablabla..
blablabla
But Unity makes it like this
Blabla:blablabla..
blablabla
How can i change this?
Answer by alone1992 · May 04, 2015 at 05:03 PM
On text mesh of your 3d text set your Alignment to "Left"
or try this link : http://docs.unity3d.com/ScriptReference/TextAlignment.html
If this answer could help you vote it ;)
But i want my second line not direct under first one, like i showed
with this setting every time you add space the space will be added from left side and you could do it very simply.
Do not add space to your first line and at the second line when you add space it will get look like what you want.
If you couldn't do it , I'll send you a text mesh or any style you want with a unity3d 5.0.0 package Don't worry.
But i have cases were the first line is to long and is moved in the second, so then it is left again.Do i have to make the Text completly new make every line short enough ?
For that cases you have some options :
1- $$anonymous$$anage your text to be in one line (Scale it or select smaller font size)
2- Have multiple text that have different alignment options
3- $$anonymous$$ove your text manually and do it yourself by putting space or tab or ...
Your answer
Follow this Question
Related Questions
Detect Text in GUI; Print 1 Answer
GUI text font change 3 Answers
Limit on GUI Components? 0 Answers
Unity GUI text displaying as noise 1 Answer
GUI.PasswordField "•" makes "?" 1 Answer