how to quit game in unity on button click code example Example: quit button unity void quitGame() { Application.Quit(); }