- Home /
Is there a limit to how long a UI text can be?
I made a text object saying "You Win! Press Esc to exit." But in-game the text only reads "You Win!".
Answer by Hellium · Jul 03, 2017 at 08:26 AM
You have to change two parameters in your Text
component :
Horizontal Overflow
: If you want the text to wrap to new line if the text goes outside the box on the horizontal axisVertical Overflow
: If you want the text not to be truncated if the text goes outside the box on the vertical axis
Thanks. It worked, though the last word, exit, always keeps going to new line.
Hi, Do you know if is there a similar property for Text$$anonymous$$esh?
I've been looking but the only thing I could find was "you can add line breaks by inserting the escape character “\n” in your strings.". But I would like it to be automatic since we are having many different strings.
Thanks!!
I never use Text$$anonymous$$esh, so I can't help you, sorry.
Thanks anyway for your quick answer! :)
I'll keep looking and if I find something I'll post it for next users.
Your answer
![](https://koobas.hobune.stream/wayback/20220612125403im_/https://answers.unity.com/themes/thub/images/avi.jpg)