exit game unity
C#
//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#:
- Title
- if statement conditions c#
- Category
- C#
- Title
- c# tab character
- Category
- C#
- Title
- mongodb custom IIdGenerator
- Category
- C#
- Title
- c# enum default
- Category
- C#
- Title
- unity get component
- Category
- C#
- Title
- c sharp substring
- Category
- C#
- Title
- c# zip a file
- Category
- C#
- Title
- how to spawn coins randomly around the screen unity 2d
- Category
- C#
- Title
- what is a protected int c#
- Category
- C#
- Title
- open file in explorer c#
- Category
- C#
- Title
- c sharp create dictionary
- Category
- C#
- Title
- c# math to radiant
- Category
- C#
- Title
- displayname c#
- Category
- C#
- Title
- zip file ignoring directory starting with dot
- Category
- C#
- Title
- when do i need to end a sentence with ; in c#
- Category
- C#
- Title
- unity coroutine
- Category
- C#
- Title
- unity variable from another script
- Category
- C#
- Title
- c# how to compare 2 dates without time
- Category
- C#
- Title
- dynamic convert type c#
- Category
- C#
- Title
- c# ^ operator
- Category
- C#
- Title
- exception handling c#
- Category
- C#
- Title
- unity cast int to float
- Category
- C#
- Title
- asp.net core razor pages upload file
- Category
- C#
- Title
- unity create primitive
- Category
- C#
- Title
- how to clear console through script unity
- Category
- C#
- Title
- c# filter non alphanumeric characters
- Category
- C#
- Title
- c# create array of int
- Category
- C#
- Title
- unity delete specific text in a string
- Category
- C#
- Title
- what is the namespace for textmesh pro
- Category
- C#
- Title
- unity deactivate scripts in list
- Category
- C#
- Title
- check version of asp.net core
- Category
- C#
- Title
- c# replace foreach with lambda
- Category
- C#
- Title
- c# getter setter
- Category
- C#
- Title
- convert system.byte a string c#
- Category
- C#
- Title
- c# size of enum
- Category
- C#
- Title
- write last line txt file c#
- Category
- C#
- Title
- c# get motherboard id
- Category
- C#
- Title
- c# combobox datasource enum
- Category
- C#
- Title
- return random from enum
- Category
- C#
- Title
- compose graphql query string in c#
- Category
- C#
- Title
- C# save pdf stream to file
- Category
- C#
- Title
- length of a string c#
- Category
- C#
- Title
- how to add a gameobject
- Category
- C#
- Title
- mongodb c# batch find
- Category
- C#
- Title
- How to set an expiry date on a program
- Category
- C#
- Title
- unity onselect gizmos wireframe
- Category
- C#
- Title
- C# linq mselect
- Category
- C#
- Title
- flip boolean c#
- Category
- C#
- Title
- c# keyboard enter
- Category
- C#
- Title
- unity material offset script
- Category
- C#
- Title
- unity reset scene
- Category
- C#
- Title
- unity to integer
- Category
- C#
- Title
- c# get foreground window
- Category
- C#
- Title
- onmouseclick unity
- Category
- C#
- Title
- unity add component
- Category
- C#
- Title
- visual studio C# hintergrund bild ändern
- Category
- C#
- Title
- c# web form compare dates
- Category
- C#
- Title
- use newtonsoft json to clone object
- Category
- C#
- Title
- c# reverse list
- Category
- C#
- Title
- landscape print gridcontrol devexpress
- Category
- C#
- Title
- convert string to double c#
- Category
- C#
- Title
- c# int
- Category
- C#
- Title
- how to check if textbox is empty in c#
- Category
- C#
- Title
- c# listview
- Category
- C#
- Title
- c# mixed multidimensional array
- Category
- C#
- Title
- c# get current directory xamarin
- Category
- C#
- Title
- c# windows grab screenshot
- Category
- C#
- Title
- c# stop loop
- Category
- C#
- Title
- read configuration workerservice
- Category
- C#
- Title
- what is the and in c#
- Category
- C#
- Title
- c# class to byte array
- Category
- C#
- Title
- unity how to move an object to another object
- Category
- C#
- Title
- get enum by index c#
- Category
- C#
- Title
- c# change cursor
- Category
- C#
- Title
- ping with c#
- Category
- C#
- Title
- bytes size c#
- Category
- C#
- Title
- unity get data from firebase
- Category
- C#
- Title
- Replaced OS is obselete
- Category
- C#
- Title
- uncaught syntaxerror invalid or unexpected token unity webgl
- Category
- C#
- Title
- percentage in c#
- Category
- C#
- Title
- leantween sequence
- Category
- C#
- Title
- get waht is differnt between two arrays c#
- Category
- C#
- Title
- c# switch case with or condition
- Category
- C#
- Title
- or symbol in unity
- Category
- C#
- Title
- order by C#
- Category
- C#
- Title
- convert array object to int[] c#
- Category
- C#
- Title
- add spaces between words unity
- Category
- C#
- Title
- unity generate random color
- Category
- C#
- Title
- stop ui from clipping wall
- Category
- C#
- Title
- c# close window
- Category
- C#
- Title
- c# stop loop in method
- Category
- C#
- Title
- c# string array
- Category
- C#
- Title
- .net core executenonqueryasync transaction
- Category
- C#
- Title
- c# Sleep
- Category
- C#
- Title
- built in methods to order a list c#
- Category
- C#
- Title
- get random point within radius
- Category
- C#
- Title
- snake game
- Category
- C#
- Title
- c# read char
- Category
- C#
- Title
- format float to time c#
- Category
- C#
- Title
- unity serializefield
- Category
- C#