Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by jiteshvm · Jul 26, 2011 at 04:06 PM · scrollscrollingscrollbarscroll-wheel

How do i move the vertical scrollbar thumb using left-mouse click and dragging it ?

I cannot move the vertical scrollbar thumb by using the left mouse-click and dragging it, but it can be moved when i use the mouse scroll wheel. I want it to be able to move using mouse-click as well because most of the users intend to do that first. Does anyone know why?

Comment
Add comment · Show 6
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 ConfinedDarkness · Jul 26, 2011 at 04:29 PM 0
Share

Can I have the script you are using?

avatar image jiteshvm · Jul 26, 2011 at 04:43 PM 0
Share

Actually its not the script. Its the GUI Skin. If i use the default skin then it works but if i use the a custom skin then it doesnt work.

avatar image ConfinedDarkness · Jul 26, 2011 at 05:16 PM 1
Share

I have made a custom GUI skin that seems to work. Here are some settings for it:

No left to right padding Top to bottom padding is 6

No margin

No overflow

No fixed height

Fixed width is 15

No stretch width

Stretches height.

Try applying some of this to your skin and see if that works.

avatar image jiteshvm · Jul 26, 2011 at 05:27 PM 0
Share

Yes! That works. I had the same settings but the left Padding was 18 which caused the problem. Thank you.

avatar image ConfinedDarkness · Jul 26, 2011 at 06:23 PM 0
Share

See if there is a way to mark the question as answered because I answered in comments by accident.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by ConfinedDarkness · Jul 26, 2011 at 07:17 PM

1 I have made a custom GUI skin that seems to work. Here are some settings for it:

No left to right padding Top to bottom padding is 6

No margin

No overflow

No fixed height

Fixed width is 15

No stretch width

Stretches height.

Try applying some of this to your skin and see if that works.

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
avatar image
0

Answer by HyunMok_Moon · Oct 14, 2016 at 05:56 AM

BTW I worked in NGUI.

In UIScroll Bar container object, we can assign these in UIScrollBar component. Apperance Foreground as UISprite, Background as UISprite, Thumb as Thumb object, - UIButton and BoxCollider Direction Left to Right or Top To Button.

In UIScrollbar container, add component Box Collider size to scroll bar size,

In UIScrollbar container, add component UI Event Listener

In UIScrollView, there is Horizontal or Vertical scrollbars. Assign ScrollBar Container to here.

At first, I didn't assign Foreground and Box collider, Thumb is moved mouse wheel or Scollview drag. but Thumb is not grap and moved. After I assigned Foreground and Box collider then I can grap thumb and dragged OK.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Scroll Wheel Mac vs Windows 0 Answers

I am still able to scroll even though scroll type is clamped? 0 Answers

How do I Make TextMeshPro InputField scroll through code? 0 Answers

Detecting Mouse Scroll Wheel without Input.GetAxis? 0 Answers

how do i set up the mouse wheel? 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