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
2
Question by FourSheds · Sep 05, 2010 at 01:55 PM · inputscrollwheelscrollwheel

ScrollWheel Input not detected in script

Hi

I'm not getting any ScrollWheel input, so I attached this barebones script to the main camera to find the problem, but still don't get any scroll input reported.

function Update () { if (Input.GetAxis("Mouse ScrollWheel") != 0) { Debug.Log("Scroll"); }

if (Input.GetMouseButtonDown (0)) { Debug.Log("Left mouse button pressed!"); }

}

The button press is reported, so I know the script is attached and running OK, and has no compile errors.

The default ScrollWheel input is defined correctly in the Input Manager: Mouse ScrollWheel ... Mouse Movement 3rd axis

I'm on OSX 10.6, Unity 2.6.

Thanks for any clues

FourSheds

Comment
Add comment · Show 1
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 Gillissie · Apr 27, 2011 at 07:55 PM 0
Share

I'm using the latest Unity and still can't get any values out of "$$anonymous$$ouse ScrollWheel". This goes for my editor on the $$anonymous$$ac, and the web player on both $$anonymous$$ac and Windows Vista.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Cyb3rManiak · Sep 05, 2010 at 02:22 PM

Weird. Works fine when I run it here, so It's either your project's settings (Which seem to be fine as you describe them), or your mouse :)

Seriously, try opening a new empty Unity project and test it there. If it still won't work - try switching the mouse. Is it some kind of weird Evil-Coder-Macro-Do-It-All mouse with fancy drivers? Track pad? Standard mouse?

Comment
Add comment · Show 3 · 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 FourSheds · Sep 05, 2010 at 03:09 PM 0
Share

Thanks for the feedback, yes, it's an Evil multi-button cordless Logitech mouse with the latest drivers. So, as suggested, tried it with an Apple mouse and it works fine. Strange, the Logitech scroll works in every other application e.g. zoo$$anonymous$$g in Cinema4D.

avatar image FourSheds · Sep 05, 2010 at 03:15 PM 0
Share

Edit: Tried it with two other non-Apple standard 2-button mice (corded) and Unity will still only recognise the Apple mouse. Has anyone had success getting Unity to recognize any non-Apple mice?

avatar image Cyb3rManiak · Sep 12, 2010 at 11:38 PM 0
Share

Sorry for the delayed response... Yeah. I most certainly did. I never use an apple mouse, and even when I was coding with Unity on OSX I had no problem with using the scroll wheel. Back then it was Unity 2.1 and maybe 2.5, but I don't think it should matter.

avatar image
0

Answer by FiveFingers · Nov 09, 2012 at 04:46 PM

The problem is with Safari on MacOSX. If you try same code on web player plugin with Firefox or Chrome on Mac, it works just fine.

I don't know why is that, and if there is some fix for Safari

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

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

Character Zoom in and out 1 Answer

how do you make a Mouse ScrollWheel script 1 Answer

Making the camera zoom in and out? 1 Answer

How to check if mac OS's natural scrolling is on or off? 0 Answers


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