• Preparing search index...
  • The search index is not available
Source Academy Modules
  • Source Academy Modules
  • unity_academy
  • get_key_down

Function get_key_down

  • get_key_down(keyCode): boolean
  • When user presses a key on the keyboard or mouse button, this function will return true only at the frame when the key is just pressed down and return false afterwards.

    For more information, see https://docs.unity3d.com/ScriptReference/Input.GetKeyDown.html

    Parameters

    • keyCode: string

      The key to detact input for.

    Returns boolean

    A boolean value equivalent to Input.GetKeyDown(keyCode) in Unity.

    • Defined in bundles/unity_academy/functions.ts:496

Settings

Member Visibility

Theme

Source Academy Modules
  • Loading...

Generated using TypeDoc