So I’m trying to let a label show up when a button is pressed but the label doesn’t show. What am I doing wrong? I’m not getting any errors. Here is my code:
function OnGUI ()
{
if (GUI.Button(Rect(Screen.width*0.56,Screen.height - 100 ,80,80),"Info"))
{
GUI.Label(Rect(Screen.width*0.5,Screen.height*0.5,1000,1000),ProductionHourText);
}
}