Hello, I’m a new student in this course. I would like to ask what is the difference between Input.GetKeyUp and Input.GetKeyDown, as I am genuinely confused.
Hi Jonevat,
Welcome to our community!
Input.GetKeyUp
returns true
in the frame in which the key was released. Input.GetKeyDown
returns true
in the frame in which the key was pressed down.
For further information, please refer to the API.
See also:
- Unity API: Input.GetKeyDown
- Unity API: Input.GetKeyUp
- Forum User Guides : How to mark a topic as solved
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.