I want the Input.GetKeyDown() to still work while tabbed out. Is this possible?
If you need it, here is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class andahhh : MonoBehaviour {
public Text number;
public Text title;
public InputField changeTitle;
// Use this for initialization
void Start () {
Application.runInBackground = true;
number.text = "0";
changeTitle.text = "Button Press Count:";
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.RightControl))
{
int newNumber = (int.Parse(number.text.ToString())) + 1;
number.text = newNumber.ToString();
}
title.text = changeTitle.text;
}
}