- Home /
Question by
swatmaster69 · Oct 28, 2012 at 04:01 AM ·
inputbuttonunresponsive
Is there a reason a button (or key) would be unresponsive half the time?
I'm trying to make a player throw a ball with a gamepad button and the `Input.GetButtonDown()` method, but it often takes two or three presses to work. Same thing happens when I use the keyboard as an alternate button. Any ideas?
Comment
Is it in Update? The docs say they only go there, but kind of buried.
Best Answer
Answer by Eric5h5 · Oct 28, 2012 at 05:15 AM
Never put ButtonDown/Up code in FixedUpdate.
Hey thanks. That actually makes a lot of sense now that I think about it.
Your answer
Follow this Question
Related Questions
How to get the key from the button name 1 Answer
Key remapping inGame 0 Answers
Button Input 1 Answer
OVRInput keys are not working 0 Answers
multiple inputs 2 Answers