C
C#2y ago
mjj

❔ Help

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Manager : MonoBehaviour { void Update() { if (Input.GetKey(KeyCode.X)) { Application.Quit(); } } } this should close the app instantly but it wont work when i press on x key
5 Replies
blinkbat
blinkbat2y ago
maybe it's a casing issue? x vs X
cathei
cathei2y ago
$unity
cathei
cathei2y ago
Application.Quit call is ignored in the Editor.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server