Author Topic: Input Axis Mouse scrollwheel is not setup  (Read 7842 times)

romain75

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Input Axis Mouse scrollwheel is not setup
« on: February 12, 2014, 03:36:16 PM »
hello all,
I have a problem with the pack Ngui
Can you help me, I start to unity.
it tells me:
UnityException: Input Axis Mouse scrollwheel is not setup.
  To change the input settings use: Edit -> Project Settings -> Input
UICamera.Update () (at Assets / Ngui / Scripts / UI / UICamera.cs: 984)

Can you help me please. I hope you do not waste time.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Input Axis Mouse scrollwheel is not setup
« Reply #1 on: February 13, 2014, 12:42:15 AM »
If you don't need the mouse scroll wheel functionality, you can remove that field on the UICamera script. Leave it blank.

If you do need the scroll wheel functionality, then make sure to add its axis to Input as NGUI mentions (Edit -> Project Settings -> Input).

romain75

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Input Axis Mouse scrollwheel is not setup
« Reply #2 on: March 03, 2014, 04:51:13 PM »
hello,

I come to you about it.

UNITY said: UnityException: Input Axis Mouse scrollwheel is not setup.
  To change the input settings use: Edit -> Project Settings -> Input
UICamera.Update () (at Assets / Ngui / Scripts / UI / UICamera.cs: 984)

so I go into the script and I do this:
if (usemouse mHover &&! ​​= null)
{
/ / scroll = float! String.IsNullOrEmpty (scrollAxisName)? Input.GetAxis (scrollAxisName): 0f;
/ / if (scroll = 0f!) Notify (mHover "OnScroll" scroll);
is this correct?


in "input" I've checked the "snap" box
my camera in event source I checked only touch

but I always receive an error message

Can you help me please

thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Input Axis Mouse scrollwheel is not setup
« Reply #3 on: March 03, 2014, 10:12:41 PM »
No... don't need to edit any code. Click on the camera that has the UICamera script attached and under the "Axes and Keys" section delete the Scroll field. It's set to "Mouse ScrollWheel". Make it blank.