Skip to content

Instantly share code, notes, and snippets.

@tracend
Created March 29, 2011 23:19
Show Gist options
  • Save tracend/893553 to your computer and use it in GitHub Desktop.
Save tracend/893553 to your computer and use it in GitHub Desktop.
Unity3D: Quit button
function OnGUI () {
if (GUI.Button (Rect (25, 25, 100, 30), "Quit")) {
Application.Quit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment