Search Unity

input.GetButtonDown

Discussion in 'Scripting' started by Caleb, Aug 11, 2010.

  1. Caleb

    Caleb

    Joined:
    Aug 10, 2010
    Posts:
    4
    if(Input.GetButton("Jump"))

    Where is that windows that you can open to see all of the predefined buttons like space = Jump ect.. ? :)

    I need to find what the left mouse button is.
     
  2. hybrent

    hybrent

    Joined:
    Feb 26, 2010
    Posts:
    80
    Left mouse button is "Fire1" or something similar by default.

    You can change them by going to:

    Edit->Project settings->input