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
6
Question by siddharth3322 · Sep 22, 2015 at 01:14 PM · uiunity 4.6scrollview

Scroll View move back on the spot

Basically for my game I am using Unity UI Scroll Rect. I go through video related to that but cant able to solve my problem.

My scroll view not able to provide scrolling functionality. when I release my finger it moves back at same time. Following video link gives you more idea about this.

Dropbox ScrollView Bug Link

I have done nothing special in creating my scroll hierarchy. No extra script was added in inspector. If you want any more information you want from my side then I am available always.

One thing I want to mention, if I add only single image in child then scrollview works perfectly.

EDIT : If I give correct value manually here then my scroll view working correctly. But my content is dynamic then how to deal with it?

Question Inspector

screen-shot-2015-09-22-at-95600-pm.png (42.7 kB)
Comment
Add comment · Show 14
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 sys12 · Sep 22, 2015 at 01:17 PM 0
Share

Do you have any codes?

avatar image siddharth3322 sys12 · Sep 22, 2015 at 01:18 PM 0
Share

Current I don't have running any code for this scroll rect.

avatar image sys12 siddharth3322 · Sep 22, 2015 at 01:40 PM 0
Share

Sorry I know nothing about scroll view in editor.

Show more comments
avatar image siddharth3322 · Sep 22, 2015 at 02:03 PM 0
Share

Here is all scroll view inspector data

https://www.dropbox.com/s/j084npmkn9za961/scrollview_ins.png?dl=0

https://www.dropbox.com/s/mmztj02v78gmzrw/contentpanel_ins.png?dl=0

https://www.dropbox.com/s/n72by9xv8ju3h12/image_ins.png?dl=0

avatar image sys12 siddharth3322 · Sep 22, 2015 at 02:18 PM 0
Share

Are your able to see the Scrollbar(inspector)? It might under the hierarchy of Scroll View.

avatar image sys12 sys12 · Sep 22, 2015 at 02:19 PM 0
Share

You can monitor the value of the scrollbar and check what is updating it.

Show more comments
avatar image siddharth3322 · Sep 22, 2015 at 02:31 PM 0
Share

Do you have $$anonymous$$m viewer? Then we can directly move over there and you can directly work with my project.

avatar image sys12 siddharth3322 · Sep 22, 2015 at 02:34 PM 0
Share

I'm afraid I don't. But you can try to add a ScrollView to your project.

avatar image siddharth3322 sys12 · Sep 22, 2015 at 02:38 PM 0
Share

I have already added ScrollRect script in my ContentScrollView object. That you see in above image.

Are you using skype? then we chat in that medium.

Thanks for your help :)

Show more comments
avatar image siddharth3322 · Sep 22, 2015 at 02:45 PM 0
Share

I already watched that video. Anyway thanks for your effort and time.

1 Reply

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

Answer by siddharth3322 · Apr 08, 2016 at 01:48 PM

To provide container with dynamic width and height, you need to add Content Size Fitter to your container object.

alt text

That's all, now your scrollview can handle dynamic content.


screen-shot-2016-04-08-at-71555-pm.png (62.2 kB)
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

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

34 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 4.6 UI - How to left-align scroll rect content 3 Answers

[Solved] need help regarding autolayout in scrollrect 1 Answer

Terminate drag while mouse is still down 0 Answers

Moving a ScrollRect child via script to focus on some point. 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