Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity key pressed

//Triggers if Space is pressed
void Update()
{
  if (Input.GetKeyDown(KeyCode.Space))
  {
    //Your code
  }
}
 
PREVIOUS NEXT
Tagged: #unity #key #pressed
ADD COMMENT
Topic
Name
7+4 =