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# generate random date 
Csharp :: asp.net core .gitignore 
Csharp :: Program for factorial of a number in c# 
Csharp :: unity find gameobject by name 
Csharp :: linux command line exit with error message 
Csharp :: c# for loop backwards 
Csharp :: c# initialize dictionary 
Csharp :: how to convert string to bool c# 
Csharp :: c# wait seconds 
Csharp :: c# convert Unix time in seconds to datetime 
Csharp :: laravel route redirect 
Csharp :: open website c# 
Csharp :: unity c# get bool from another script 
Csharp :: create folder in appdata c# 
Csharp :: c# read json file into object 
Csharp :: change textbox location C# 
Csharp :: c# format decimal as currency 
Csharp :: unity string array 
Csharp :: c# empty char 
Csharp :: c# get project directory 
Csharp :: c# write to console 
Csharp :: this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework 
Csharp :: How To Copy a text C# unity 
Csharp :: windows forms iterate through all controls 
Csharp :: c# print array 
Csharp :: wpf rounded image 
Csharp :: unity how to remove a tag 
Csharp :: how to change scenes in unity 
Csharp :: c# how to open file explorer 
Csharp :: c# get files of type in directory 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =