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 /
  • Help Room /
avatar image
1
Question by Joe-the-programmer · Feb 19, 2016 at 09:37 AM · uibuild

UI Scrollview dissapearing in Build?

On my start menu I have a scroll view to display the levels in my game:

alt text

It works fine in the editor every time but acts weird in builds. As a windows 10 app the scroll bar isn't visible and there are no restraints on the scrolling (so you can keep scrolling until all of the content is off the screen) also sometimes it flashes and even disappears altogether. On WP 8.1 the scrollbar is there and the restraints work fine but sometimes when I load the start menu the backgrounds are merged in a weird way, the title disappears and when play is tapped the scroll view doesn't appear at all:

alt text

The problem is not with resolution as I have checked this in the editor and it works fine for all resolutions. How do I fix it?

menu.jpg (74.9 kB)
glitch.jpg (68.9 kB)
Comment
Add comment · Show 3
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 kuperto_pixel · Aug 29, 2016 at 10:14 AM 0
Share

Someone answer this!, Did you solve the problem??

avatar image Joe-the-programmer · Aug 29, 2016 at 01:22 PM 0
Share

No I haven't fixed it, ins$$anonymous$$d I ditched the scroll thingy completely and changed the way the start menu works to avoid the bug, sorry.

avatar image Mikael-H · Sep 19, 2016 at 02:39 PM 0
Share

Having the same issue on Unity 5.4.1 I have a scrollview that will not show its content regardless of if I add items in the scene or during runtime. Will try adding the scrollview at runtime as prefab and see if it works better...

Did you report this as a bug?

5 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by robal1991 · Jun 28, 2017 at 09:49 AM

I've had similar issue. The problem was that Scroll bar mode "Auto hide and expand viewport" wasn't working on WebGL builds.

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
1

Answer by kuperto_pixel · Aug 30, 2016 at 09:10 AM

Got it!, You have to create the menu in run time to avoid this error, for some weird reason it does not create the content when you have it "Pre-loaded" in the editor, so either create the menu in real time or instantiate a prefab of the full menu, it worked for me that way.

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 HugoStudica · Apr 19, 2018 at 03:34 PM 0
Share

Actually, it's not necessary to instantiate, if the component ScrollRect is disabled while building and then enabled during runtime it works fine. It looks like some bug for scrollrects that starts outside the canvas limits.

avatar image
1

Answer by Mikael-H · Sep 19, 2016 at 03:05 PM

I've been fighting the same (or similar) issue. In my case it seems like the "Content size fitter" atteched to the content game object of the scrollview somehow screwed things up when building for desktop.

After creating a new scrollviews a few times I finally ended up with one that worked by adding one setting or component at a time. I am not sure what the illegal setting was that made the scrollview not work in the build and now that I have a working version I'm not touching it :)

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
1

Answer by Rinku2429 · May 14, 2018 at 07:34 AM

In Your Scroll Rect Component set the Visibility Permanent. It Should Work. :)

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 chrisg4242 · Jun 16, 2018 at 09:48 PM 0
Share

Thanks, this worked for me. $$anonymous$$y exact symptoms were that the Scroll View contents would be displayed if I played from the scene with the Scroll View, but if I started in another scene and went to that scene the Scroll View would be empty.

avatar image greentreelabs · Aug 13, 2018 at 09:14 PM 0
Share

You saved me!!

avatar image
0

Answer by saied63 · Nov 02, 2017 at 06:06 AM

@robal1991 , Thank you

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

11 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

Related Questions

After I built my game the exe opens and closes immediately !!! 0 Answers

UI Missing and Shaders look broken! 0 Answers

UI doesn't work in Editor sometime and never on tablet 0 Answers

HEEEEEEELP PLZ !!! I can't publish my webgl build casue it has no anti aliasing and other bad graphics 0 Answers

Why does my font stop rendering after some builds? 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