Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

How to quit unity app

#if UNITY_EDITOR
	UnityEditor.EditorApplication.isPlaying = false;
#else
	Application.Quit();
#endif
Comment

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
     }
Comment

application.quit() unity

Application.Quit();
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# main file 
Csharp :: check connection c# 
Csharp :: save file with unique name c# 
Csharp :: how to unlock cursor in unity 
Csharp :: unity to integer 
Csharp :: unity createassetmenu 
Csharp :: how to wait in c# 
Csharp :: how to get delta time in monogame 
Csharp :: c# serialize json 
Csharp :: print out a dictionary c# 
Csharp :: wann war der dritte weltkrieg 
Csharp :: unity change text 
Csharp :: check last character of a string c# 
Csharp :: c# get current date 
Csharp :: c# output double with precision 
Csharp :: c# resize image keep aspect ratio 
Csharp :: c# string to sha256 
Csharp :: write to file c# 
Csharp :: change textbox location C# 
Csharp :: get date from file c# 
Csharp :: open new window c# wpf 
Csharp :: unity game sleep on hit 
Csharp :: unity character controller ignore collision 
Csharp :: how to spawn coins randomly around the screen unity 2d 
Csharp :: unity url 
Csharp :: c# fontweight in code 
Csharp :: wpf load file content 
Csharp :: wpf make both rich Text scroll 
Csharp :: c# shuffle string array 
Csharp :: unity camera follow 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =