Input.GetKeystatic function GetKey (name : String) : booleanDescriptionReturns true while the user holds down the key identified by name. Think auto fire. For the list of key identifiers see Input Manager. When dealing with input it is recommended to use Input.GetAxis and Input.GetButton instead since it allows end-users to configure the keys.
JavaScript
function Update () { using UnityEngine; import UnityEngine static function GetKey (key : KeyCode) : booleanDescriptionReturns true while the user holds down the key identified by the key KeyCode enum parameter.
JavaScript
function Update () { using UnityEngine; import UnityEngine |
