Answers for "unity quit code"

C#
7

quit button unity

void quitGame() {
     Application.Quit();
 }
Posted by: Guest on August-27-2020
5

unity quit code

Application.Quit();
Posted by: Guest on October-22-2020
0

unity Exit application

public void QuitGame()
     {
         // save any game data here
         #if UNITY_EDITOR
             // Application.Quit() does not work in the editor so
             // UnityEditor.EditorApplication.isPlaying need to be set to false to end the game
             UnityEditor.EditorApplication.isPlaying = false;
         #else
             Application.Quit();
         #endif
     }
Posted by: Guest on August-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language