application.stop unity
using UnityEngine;
using System.Collections;// Quits the player when the user hits escapepublic class ExampleClass : MonoBehaviour
{
void Update()
{
if (Input.GetKey("escape"))
{
Application.Quit();
}
}
}
Also in C#:
- c# string to character array
- Unity if object doens't exist
- string isnullorempty vs isnullorwhitespace
- c# linq join multiple conditions
- c# declare an int list
- iframe set html content c#
- unity how to move an object to another object
- create object in c#
- c# communicate with arduino
- c# get today's date
- start up file in asp.net core
- c# object clone
- take screenshot in c#
- Oculus Go virtual mapping
- unity c# foreach
- asp.net c# write string to text file
- strtorime online
- c# split large file into chunks
- foreach c#
- c# while loop
- out parameters c#
- unity on mousewheel down
- length of a string c#
- c# singleton