Answers for "unity check if key pressed"

C#
8

unity check if key pressed

if (Input.GetKeyDown(KeyCode.KEY))
Posted by: Guest on June-15-2020
3

unity when key pressed

void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }
Posted by: Guest on February-14-2021

Code answers related to "unity check if key pressed"

C# Answers by Framework

Browse Popular Code Answers by Language