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