Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Infernomaster · Jun 01, 2015 at 01:10 PM · android2duicanvas

Scroll Rect Content Disappearing (Video)

Hi,

I'm having some issues with the scroll rect not working on android. What happens is that when I activate the customize menu, the scroll rect works (cause you can see the colors change) but it's contents won't show or will sporadicly flicker for a ms and disappear. I've tried any possible way of showing and hiding. In the video I'm using canvas groups to set the alpha (but also tried with activate and inactivate). I've also tried waiting for several seconds (before and/or after pushing the customize button) but it won't show up. The curious thing is, after I play a game (duration not relevant) and after that if I push the customize button it does show up, but with a lag/loading time of more then 1 sec maybe less (I'm having the impression that it shows on touch). And when i close and reopen it won't show up again. The only possible idea I still have is that it has something to do with texture atlasses not loading correctly, cause now it's a bit of a mess in my project (but I have no idea if that is even possible?). There is no code that handle the showing or disappearing of the screens other then the X button and the Customize button, so that's not the issue.

Does anyone have even a clue what is happening here? In the editor everything works fine. Thank you upfront if this is fixable.

Android ScrollRect Issue - youtube

Comment
Add comment · Show 4
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 Brogan89 · Feb 14, 2017 at 06:35 AM 0
Share

Hey i know you posted this a while ago but did you figure it out? Having the same issue. It works when I play the scene to test, but if I come into the scene from another it wont show. If i SetActive(false) then SetActive(true) again on the scrollRect it works.. But I shouldn't have to do that. Any tips would be helpful, thanks :)

avatar image HugoStudica · Apr 19, 2018 at 02:55 PM 0
Share

Having the same problem here, a scroll rect shows content when I play in Unity, but in Android it disappears completly. Have you solved it?

avatar image Brogan89 HugoStudica · Apr 19, 2018 at 09:15 PM 0
Share

Hey @HugoStudica I've had a lot of experience with Unity UI since I commented. It doesn't look like this is "solved" but i think the main cause of this is due to the rectTransform being dirty after instantiating objects into the scroll rect's content when there is a layout group on it. So therefore, after your instantiation loop add this utility function LayoutRebuilder.ForceRebuildLayoutImmediate(scrollRect.content). If that doesn't work, try adding this Canvas.ForceUpdateCanvases() before the layout rebuilder. Hope that helps.

avatar image HugoStudica Brogan89 · Apr 20, 2018 at 06:10 PM 0
Share

I didn't try this, but I solved with a different approach. I had two scroll rects with identical functionalities and values. The one that started inside the $$anonymous$$ain Canvas had no problem to show the content, but the other one that was outside the canvas couldn't render anything. So I've read some answers on the internet and I tried starting the application with a disabled ScrollRect and enble it in runtime. Weird, but it worked. I Guess it is somehow related to what your are refering.

The weridest thing about this problem is that it will never trigger in Unity, only in the Android Device.

0 Replies

· Add your reply
  • Sort: 

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

buttons not working in android. 1 Answer

UI Elements Not Rendering Properly on Android 1 Answer

Choosing between canvas and normal 2D gameobjects 0 Answers

LineRender width not consistent across resolutions 1 Answer

For Scale with sreen size for canvas in unity3d, my sprites in Ui are pixelated when used for larger sceens 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