Unity How to Show a Quit button
- Use this function to draw a button:
- QuitButton.js
function OnGUI() { if (GUI.Button(Rect(25, 25, 320, 240), "Quit")) { Application.Quit(); } }
function OnGUI() { if (GUI.Button(Rect(25, 25, 320, 240), "Quit")) { Application.Quit(); } }