Quantcast
Channel: Latest Questions by Crispinator
Viewing all articles
Browse latest Browse all 30

Error : Expressions in statements must only be executed for their side effects.

$
0
0
I am trying to create a menu. I don't see what I am doing wrong. Here is my script. I am not worried about the resume section yet though. function Start () { } function OnGUI() { GUI.Box(Rect(0,0,100,90), "Menu"); if(GUI.Button(Rect(10,60,80,20), "Quit")) { Application.Quit; } }

Viewing all articles
Browse latest Browse all 30

Trending Articles