hello i would like to only detect key input if it a number is pressed, I am using the following code.
Regex rgx = new Regex("[^0-9]");
if (e.isKey)
Debug.Log("Detected character: " + e.character);
I cannot combine these two bits to get it to only detect the number input from the keyboard.
Any help is appreciated
p.s. i am using c#
↧