|
I want to press a button and detect if this has happened as soon as I pressed the button. These functions only detect a key press if I release the button and both seem to be the same? Input.GetButtonUp or Input.GetButtonDown
(comments are locked)
|
|
GetButtonDown only returns true during the frame when the button is pressed down. GetButtonUp only returns true during the frame when the button, which had previously been pressed, is released.
(comments are locked)
|

I have no idea what are you asking.
GetButtonDown only returns true during the frame when the button is pressed down. GetButtonUp only returns true during the frame when the button, which had previously been pressed, is released.
I think you're going for unity answer a bit too fast. Try to figure it out by yourself first. Most of your questions are simple.
ok this works thanks but how do I get this to work for anykey like 'a' or 'b' or arrow keys?
Read the input manager docs.