Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity on key press

// Arrow Keys
Input.GetKeyDown(KeyCode.UpArrow)

// Specific Letter e.g. "A"
Input.GetKeyDown(KeyCode.A)

// Space
Input.GetKeyDown(KeyCode.Space)
 
PREVIOUS NEXT
Tagged: #unity #key #press
ADD COMMENT
Topic
Name
7+5 =