- Home /
GUI.Label is not showing up!
I simply use this code to show my score even not using any variable its not showing? Although it works well in the tutorial I'm watching..
I'm a bit confused. Thank You..
function OnGui()
{
GUI.Label(Rect(10,10,200,50),"Score: ");
}
Script looks ok.
Did you put the script on an object in your scene?
Answer by Joyrider · Aug 14, 2013 at 10:51 AM
The function is called OnGUI()
casing is important !
I turned your previous answer to comment as it should have been a comment in the first place. If you do not provide any info, then you should not answer but comment.
On the other hand, your comment to your non-answer (getting confused?) should have been an answer (now you are) since it actually gives the answer to the problem (finally...).
Your answer
Follow this Question
Related Questions
Unity GUI Layout and buttons wont show up 2 Answers
GUI Rect not showing on play 2 Answers
GUI question 1 Answer
turn gui label red on key down (js) 1 Answer
How Do I Center A GUI Label? 5 Answers