exit game unity
//Quit/Stop Game
Application.Quit();//C#
public static class AppHelper
{
#if UNITY_WEBPLAYER
public static string webplayerQuitURL = "http://google.com";
#endif
public static void Quit()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#elif UNITY_WEBPLAYER
Application.OpenURL(webplayerQuitURL);
#else
Application.Quit();
#endif
}
}
Also in C#:
- how to record number of times using application in c#
- zoom gedit
- create expression func c# for use in where clause
- How to set an expiry date on a program
- unity set material
- godot c# move towards
- polling data source c# using threads
- c# send email
- how to check if an integer is in array c#
- debug.log
- unity fall damage c#
- what type of variable is true or false in c#
- unity addforceatposition
- c# odd even median
- asp list box
- asp.net tag helper checkbox
- mvc write to console
- disable mouse unity
- c# add object to array
- unity deactivate scripts in list
- press key run code unity c#
- .net core identity get user id
- Linq - Random Elements
- c# new dictionary linq