Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: romain75 on February 12, 2014, 03:36:16 PM

Title: Input Axis Mouse scrollwheel is not setup
Post by: romain75 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.
Title: Re: Input Axis Mouse scrollwheel is not setup
Post by: ArenMook 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).
Title: Re: Input Axis Mouse scrollwheel is not setup
Post by: romain75 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
Title: Re: Input Axis Mouse scrollwheel is not setup
Post by: ArenMook 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.