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 LUPShow · Aug 24, 2015 at 03:36 PM · uiscrollviewscrollscrollbar

Why is my scrollbar not working?

Hi! i am building a GUI System with a list of elements. To scroll this list i need a scrollbar. Therefore i have a got a ScrollRect. The elements are being placed at runtime inside of an RectTransform, which is a child of the ScrollRect Element. When I create a scrollbar and assign it to the ScrollRect Element, it does not work at all. the scrollbar has always the size of 1....

i can scroll with the mouse wheel, but not with the scrollbar. In all Videos and Tutorials on the web it works from scratch by assigning the scrollbar to the scrollrect. What am I doing wron here?

thanks for the help!

Comment
Add comment · Show 2
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 Nerevar · Aug 25, 2015 at 08:36 AM 0
Share

Is your scrollrect setup for a vetical scroll? if so, the scrollbar should also have his direction from bottom to top.

You could provide screenshot of your components values, it is quite hard to guess what could be wrong...

avatar image LUPShow · Aug 25, 2015 at 02:55 PM 0
Share

Hi! here are some screenshots of my setup. the size of the scrollbar is always set to 1.ScrollRectScrollBar

scrollrect.png (81.8 kB)
scrollbar.png (99.8 kB)

4 Replies

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

Answer by itsharshdeep · Aug 25, 2015 at 09:00 AM

Please cross check the elements which you have placed in your scroll list . With my given screenshot

Please make sure that you add a child of scroll rect & place it into the content of the scroll rect & then make all list of element as child of the content's.

alt text

alt text


hierarchy.png (7.4 kB)
screen-shot-2015-08-25-at-22623-pm.png (43.3 kB)
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 LUPShow · Aug 25, 2015 at 11:42 AM 0
Share

that is exactly what i have.... see screenshots:

alt text alt text

scrollrect.png (81.8 kB)
scrollbar.png (99.8 kB)
avatar image itsharshdeep · Aug 25, 2015 at 01:11 PM 1
Share

Please try to change "movement type" in scrollRect ..

and one more re$$anonymous$$der that you must have the parent bigger size ( height) than the scroll rect size.. only then your scrollrect's content will move inside the scrollRect.

avatar image
5

Answer by LUPShow · Aug 26, 2015 at 08:26 AM

@itsharshdeep thank you so much!! it was the size issue. it was a good hint. had to make the parent bigger and add a content size filter to the content. otherwise it did not change the size and i could not scroll.

thanks a lot guys!

Comment
Add comment · Show 1 · 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 itsharshdeep · Aug 31, 2015 at 04:48 AM 1
Share

@LUPShow :

:) Its really my pleasure to help you to sought out the problem. It will be really great if you can accept my answer, It can improve my reputation and help me to help others :-D

avatar image
0

Answer by NeverHopeless · Aug 25, 2015 at 01:11 PM

Try setting size = 0.2 and Value = 1 for ScrollBar gameobject. Also, try changing Movement Type to Elastic Movement value.

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 mcpedab · Apr 12, 2021 at 03:29 AM

Ya I am having the same issue I even have the scrollrect smaller than the parent. I am actually following this video https://www.youtube.com/watch?v=-cTgL9jhpUQ all of my settings are the same as the settings in this video

It is brackey's tower defense video.

Please help!!!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to disable ScrollView dragging 4 Answers

Scroll Rect Min/Max Size 0 Answers

Where can I edit UI.ScrollView? 0 Answers

ScrollRect scrollbar drag being overridden and stuttering to top 0 Answers

Scrollable zooming list 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