Kizspy | Question: 40
(Choose 1 answer)
FOBVERT LOW LOM!
What is the difference between Input.GetKey() and Input.GetKeyDown() in Unity?
A. Input.GetKey() checks a key is pressed, while Input.GetKeyDown() checks for a key release.
B. Input.GetKey() detects continuous pressing, while Input.GetKeyDown() detects a single press event.
C. Input.GetKey() only works for keyboard, while Input.GetKeyDown() works for both mouse and keyboard.
D. Input.GetKey() is for axis input, and Input.GetKeyDown() is for button input.