Method GetKeyDown
GetKeyDown(KeyCode)
Returns true during the frame when the user starts pressing the key
Declaration
public static bool GetKeyDown(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | key |
Returns
Type | Description |
---|---|
System.Boolean |