Quantcast
Channel: Answers for "How Do I Center A GUI Label?"
Viewing all articles
Browse latest Browse all 9

Answer by langalang

$
0
0
Another way is to set the alignment to "Upper Center" in the GUIStyle. Set your label to be anchored to the x=0 and height you want, then make sure your label width is set to the screen width. Eg GUI.Label (Rect (0, Screen.height/2-25, Screen.width, 50), "BLAH", myStyle); This works with dynamic text.

Viewing all articles
Browse latest Browse all 9

Trending Articles