Answers for "how to detect w key unity"

C#
22

unity key detection

if (Input.GetKeyDown(KeyCode.Space))
        {
            print("space key was pressed");
        }
Posted by: Guest on January-17-2020
4

unity key detection

void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }
Posted by: Guest on May-10-2020

Code answers related to "how to detect w key unity"

C# Answers by Framework

Browse Popular Code Answers by Language