- Home /
Perform event only once on keypress
Is it possible to have something occur on a keypress only when the key is first pressed (i.e. doesn't keep happening if the user keeps the key pressed down) and then can't occur again until the next time it is pressed?
Comment
Best Answer
Answer by fafase · Sep 20, 2012 at 12:58 PM
You should have checked the docs.
Input.GetKey
Input.GetKeyDown
Input.GetKeyUp
Guess which one you need. I give a clue, it is in the middle.
Thanks. I did try a search, but obviously not a good one. Sorry was late last night when i posted. Cheers
Your answer
Follow this Question
Related Questions
Create GUIText by pressing key 1 Answer
Anyway to get what key is down? 1 Answer
Having issues with Input.GetKey... 3 Answers
Car Enter/Exit Script Problems 1 Answer