Search Unity

"Input Axis Mouse ScroolWhell is not setup"

Discussion in 'Getting Started' started by darthachill, Jan 29, 2015.

  1. darthachill

    darthachill

    Joined:
    Jan 25, 2015
    Posts:
    27
    "UnityException: Input Axis Mouse ScroolWhell is not setup.
    To change the input settings use: Edit -> Project Settings -> Input"



    I read a few topic, but I stil don't know what to do. Do I need name fields, like "Positive button" or Negative Button? If it's true, how can I name these fields?



    Code (CSharp):
    1.         if (Input.GetAxis("Mouse ScroolWheel") < 0)
    2. ...
    3. else if (Input.GetAxis("Mouse ScrollWheel") > 0)
    4. ...
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    "ScroolWheel" != "ScrollWheel" When programming, you need to spell and capitalize everything exactly correct.

    --Eric
     
  3. darthachill

    darthachill

    Joined:
    Jan 25, 2015
    Posts:
    27
    damn, I checked 3 times, I need a break.
    Thx You, stupid mistake
     
    omerusart likes this.