Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Checking if Input.inputString is a number

$
0
0
Hello, I would like an if statement that checks if a number has been input. if(Input.inputString!=null) { input += Input.inputString; } Instead of checking if its null is there a (quick) way of checking if the input has been a number from either above the qwerty or the alpha key pad? Thanks

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>