GetKeyDown
Returns true during the frame the user starts pressing down the key identified by the key KeyCode enum parameter.
Declaration
public static bool GetKeyDown(KeyCode key)
Summary
Parameters
| Name | Type | Summary |
|---|---|---|
| key | KeyCode | - |
Overload
public static bool GetKeyDown(string name)
Summary
Returns true during the frame the user starts pressing down the key identified by name.
Parameters
| Name | Type | Summary |
|---|---|---|
| key | KeyCode | - |
Returns true during the frame the user starts pressing down the key identified by the key KeyCode enum parameter.