OnGUI() problems in unity 5.6, worked with Unity 4.
First I'll show you a code snippet:
 if(GUI.Button(new Rect(200,500,100,30),"Drain"))
             {
                 if(statistics.score < 10)
                 {
                     GUI.Label (new Rect(200,310,300,20),"Not enough score units!");
                     Debug.Log ("No core called");
                 } else {
                         statistics.score -= 10;
                         statistics.tries += 3;
                     }
             }
 
               This code is within the brackets of the OnGUI() event. If the user hits the drain button and has less than 10 score, a label will, or should show informing the player of this. The debug.log string shows up in the console when I try it out in playmode, but the label wont show anymore, and as the title implies this worked with unity 4. Is this a bug, or have I missed something?
Kind Regards!
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Duplicate GUI.Label Instances 1 Answer
Why is my GUI popup showing up for both host and client? 0 Answers
Auto resize/rescale ongui 0 Answers
GUI Labels doesn't center anymore 0 Answers