❔ 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
maybe it's a casing issue? x vs X
$unity
Application.Quit call is ignored in the Editor.
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.