- Home /
Center Aligned Text Overlaps
I have a GUI.Box with center aligned text. The box is plenty big to fit the text on two lines, but the text on the second line overlaps with the first line.
How would I fix this?
edit: Fixed image format
Answer by Bicko · Jan 20, 2012 at 03:09 PM
Unfortunately it looks like the font you're using doesn't have a good amount of Line Spacing.
Bad news is that unless you're using a 3D Text Mesh, you can't change the Line Spacing inside Unity and you'll have to use an external program.. a discussion about this can be found here, some solutions were offered but I don't see the OP saying if they ever worked.
Just what I needed! The thread even links to a tutorial about changing line spacing. Thanks bunches.
Your answer
![](https://koobas.hobune.stream/wayback/20220613063219im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUI.TextField duplicates texts on android. 0 Answers
v4.6 Create GUI Elements Via Script? 1 Answer
Changing 3d text through script 1 Answer
Mario style gui! 1 Answer
Move the text in a GUI Button/Box 1 Answer