Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DA_ATeam · Jan 25, 2012 at 10:19 AM · inputaxisezguiscrollwheel

EZ GUI Scrollwheel Error

Hello All; I'm using EZ GUI to make some simple custom buttons. I completed a couple of projects recently which had EZ GUI elements and all was good. Other projects EZ GUI elements were left out because they simply wouldn't work. So here's the latest...suddenly I'm getting; "Unity Exception: Input Axis Mouse ScrollWheel is not setup". >I go to Edit>Project Settings>Input and set the Axis on my Fire1 input setup to 3rd axis for Joysticks and Scrollwheel to no success. It's a show-stopper. The scene runs, but no action on any buttons throughout the project. The error points to the UIManager.cs script line 1796:

float scrollDelta = Input.GetAxis("Mouse ScrollWheel");

The whole script is way too large to include. I'm not trying to scroll or zoom. Just using some sprite buttons with UIBtn Load Scene script or and a Player1 key input setup in a different scene. Seems like it worked until I set up the Player1 input secondly. The key input works fine. (I've tried to edit out the Scrollwheel references, but that's a cannibalistic edit.)The EZ GUI setup...not so fine. Has anyone else had and resolved this problem? Thanks

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Lo0NuhtiK · Jan 25, 2012 at 11:20 AM

Well, in your code you're using Axis "Mouse ScrollWheel" which is an axis already in the input area, but you also say you set your "Fire1" input up for using the scrollwheel for some reason too, even though you arent using Fire1 in your code for it... ??
...Anyway, leave the code as it is for a minute, and go back into your Edit-ProjSetting-Input, and find Mouse ScrollWheel , then click on the checkbox next to "Snap" and see if your error goes away.
I threw a debug into a script a few seconds ago with nothing but

function Update(){
  if(Input.GetAxis("Mouse ScrollWheel")){
    Debug.Log("Scrolled") ;
  }
}

in it, and got the same error you're getting when the script was compiling. So I just went in the input stuff and clicked that checkbox for the hell of it, and now it works checked or un-checked. Maybe yours is just screwy like mine was.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DA_ATeam · Jan 25, 2012 at 08:15 PM 0
Share

@Lo0Nuhti$$anonymous$$ An 'A' for effort! But it didn't work. The 'Snap' box was checked by default, so I tried different combinations of checked/unchecked, plus inverted and 3rd Axis selected or not. The error persists. I even rebuilt the project scene on my PC,ins$$anonymous$$d of $$anonymous$$AC and ended up at the same stop sign. I am using Fire1 to control the button events. Player1 is in a different scene and controls a player. There are a couple of EZ GUI buttons also in that scene. I've used this combo many times in past with no problemo. Testing further I built a dummy new project, scene with just EZ GUI buttons and it worked no errors as I suspected. I went back to the problem scene and added a GUI button right next to the EZ GUI button. The GUI button worked, no errors. So it seems like EZ GUI is suddenly not at ease with a second input setup! The only reason I set up the scrollwheel was because of the error. I've no plans to utilize the scrollwheel at all.

avatar image Lo0NuhtiK · Jan 25, 2012 at 08:25 PM 0
Share

Lol The snap-box in $$anonymous$$e was unchecked when I went to my input settings, and I hadn't ever messed with it before earlier today. ...Still even more weird that I got the same error Unity Exception: Input Axis $$anonymous$$ouse ScrollWheel is not setup" that you had posted above before I checked/unchecked that box.
I also don't have that ez gui stuff you're talking about.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Input Scroll Wheel And Vertical Axis Work Together? 0 Answers

Is it possible to distinguish between mouse and trackpad scroll? 3 Answers

Input.GetKeyUp for Axis input 2 Answers

Can Input.GetAxis be used without assigning via the Input Manager? 1 Answer

How to use Trackpoint middle mouse button for scrolling, 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges