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)
Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #unity #key #press
ADD COMMENT
Topic
Name
8+6 =