unity 3d student

Beginner B02 – Detecting Input

How to detect basic input using a script.

Code Used (Javascript)

function Update () {
  1.     if(Input.GetButtonUp("Jump")){
  2.         Debug.Log("We Have Hit the Space Bar!");
  3.     }
  4. }

Further Reading

Share via Social Media

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites

21 Comments