Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
9
Question by Ony · Mar 11, 2010 at 11:18 PM · guiscrollviewscrollmousewheel

How can I set the mousewheel scroll speed in a ScrollView?

I have a ScrollView that's pretty long, and I want the user to be able to use the mouse wheel to scroll through it. The problem is, the wheel only scrolls about 25 pixels at a time and I need it to scroll a lot more than that.

Is there any way to change the mousewheel scroll speed for a ScrollView?

Barring that...

Is there any way to turn off mousewheel scrolling altogether inside a ScrollView? (then I can use my own scrolling code to adjust the position)

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

3 Replies

· Add your reply
  • Sort: 
avatar image
19

Answer by AlanMattano · Mar 31, 2016 at 04:22 PM

@Only change the Scroll Sensitivity value to 32 or 16.

Select the Game Object that contains the Scroll Rect component. Look into the Inspector. Search the Scroll Sensitivity input value and change it to a value that fits better for you case. This value will set the mouse wheel scroll speed.

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 Artifact-Jesse · Sep 17, 2016 at 12:18 AM 0
Share

Best answer by far.

avatar image IsouEU · Mar 15 at 08:56 PM 0
Share

Com 32 ficou perfeito, muito obrigado

avatar image
0

Answer by DaveA · Aug 31, 2010 at 07:06 AM

Could you detect when focus is in your ScrollView and muck with the Sensitivity on the 'Mouse ScrollWheel' input profile?

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 Ony · Sep 01, 2010 at 12:10 AM 0
Share

This was from months ago and I ended up using a different method altogether to do what I needed so I'm not even sure if your answer would work or not, but thanks for trying.

avatar image DaveA · Sep 01, 2010 at 07:26 PM 0
Share

Could you post your answer here, for posterity? I'm sure others may run into this too (it interested me anyway)

avatar image
0

Answer by Boco · May 06, 2011 at 05:40 AM

I found this to work for me, with some tweaking. At least for slowing it down.

scrollPosition= Vector2.Lerp(scrollPosition,GUILayout.BeginScrollView(scrollPosition),.2);

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Player controls for scrolling horizontally/vertically? 0 Answers

Scrollview is positioning things incorrectly 1 Answer

Scrollable rect containing GUIText/Label 1 Answer

How to set position in ScrollView? 1 Answer

GUIlayout scrollbar, Not working well... 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