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# get free space on drive 
Csharp :: c# random color 
Csharp :: rigidbody2d unfreeze position 
Csharp :: left moust click unity 
Csharp :: stop audio unity 
Csharp :: how to make console wait c# 
Csharp :: Linq - Random Elements 
Csharp :: unity textmeshpro 
Csharp :: unity movetowards 
Csharp :: read file c# 
Csharp :: onafterrender blazor 
Csharp :: get request url in asp.net core 
Csharp :: unity set position 
Csharp :: remove repeated items in a list unity 
Csharp :: how to destroy object in unity c# 
Csharp :: how to exit application c# console 
Csharp :: how to edit Camera.size property unity 
Csharp :: insert variables into string c# 
Csharp :: raycast unity 
Csharp :: get filename from path c# 
Csharp :: how to append a new line in a txt file c# 
Csharp :: c# add to start of list 
Csharp :: unity c# timer 
Csharp :: get string name of dropdown in unity 
Csharp :: change a dropdown to a specific option via script 
Csharp :: wpf image clip with rounded corners 
Csharp :: convert request.form to dictionary c# 
Csharp :: unity how to get fps c# 
Csharp :: how to generate random letters in C# 
Csharp :: c sharp int to string 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =