Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity key pressed


Update is called -> GetKeyDown is true (this frame only) ->  isJumpPressed = true
Update is called -> GetKeyDown is false ->  isJumpPressed = false
FixedUpdate is called -> isJumpPressed is false 

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #unity #key #pressed
ADD COMMENT
Topic
Name
5+3 =