Hi… i was looking for get the event for a kept key pressed…
for instance :
we have "Input.GetButtonDown " for one touch’s button…
but… if i want to keep the button pressed, what should be the event?
Hi… i was looking for get the event for a kept key pressed…
for instance :
we have "Input.GetButtonDown " for one touch’s button…
but… if i want to keep the button pressed, what should be the event?
Input.GetButton
yes… i know… but i want to keep pressed the button… but looking into input docs i was unable to find anything…
btw thanks.
GetButton will return true/false based on the current state of the button. (so while the user is holding down the space bar, Input.GetButton(“space”) will always be returning true)
GetButtonDown/GetButtonUp will only fire the first frame when the user presses/releases.
got it… !
Input.GetMouseButton(0) … Thanks.