hey, I am just having some trouble with my GUI, I have my script attached to a game object, I have a GUI layer on my camera, and I am 95% certain my script is correct, I have no idea what I going wrong, This is my code, function onGUI() { if(GUI.Button(Rect(Screen.width/2-75,Screen.height/2-20,150,30),"New Game")) { print("Starting new game"); } if(GUI.Button(Rect(Screen.width/2-75,Screen.height/2+20,150,30),"continue Game")) { print("Continue game"); } }
Thanks
it should be function OnGUI()... not function onGUI()
– united4life