Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity key detection

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