PRU212_-_SP_2025_-_RE_3689.webp
G

PRU212_-_SP_2025_-_RE_3689.webp

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.

Thông tin

Category
PRU212
Thêm bởi
graceful_beauty1
Ngày thêm
Lượt xem
4,087
Lượt bình luận
26
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom