- Home /
The question is answered, right answer was accepted
GUI.Label is not showing all content
GUI.Label (Rect ((Screen.width/2)-40,(Screen.height/2)-30,80,20), "Player amount:"+multiplayerscript.Players);
Okey, basically i have GUI.Label that shows player amount, but it's bugging somehow. When i run this, it prints only "Player", nothing after that space, if i change it to "Player_amount", it prints "Player_amoun". It doesnt print player amount either :/. I have been trying to solve this for a while, but i cant find answer for this.
Answer by KiraSensei · Nov 12, 2012 at 10:44 AM
Your rectangle may be a little short ... The first two parameters define the coordinates of the top left corner, and the two other parameters are for its size. Put 150 or 200 instead of 80, it may work better.
If you want it to be on two lines, the height must be augmented.
Follow this Question
Related Questions
Could I display XML content in Unity GUI interface? 0 Answers
Centering a GUI label with varying text length 1 Answer
Fonts in Android... 0 Answers
GUI Label & KeyCode Doesn't Work 1 Answer