Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity key detection

    void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }
 
PREVIOUS NEXT
Tagged: #unity #key #detection
ADD COMMENT
Topic
Name
7+1 =