Whats the difference?

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! :slight_smile:

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:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms