Quantcast
Channel: Latest Questions by GraviterX
Viewing all articles
Browse latest Browse all 122

KeyCode.Enter

$
0
0
Hey guys. I've been having trouble figuring out how to make an if statement that detects when the "enter" key is pressed. I wrote this simple script but it won't work. Any help? function Update() { if(Input.GetKeyDown (KeyCode.Enter)) { Debug.Log("Enter"); } }

Viewing all articles
Browse latest Browse all 122

Trending Articles



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