Author Topic: Scrollview contents randomly not drawn  (Read 3765 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Scrollview contents randomly not drawn
« on: January 05, 2014, 12:15:58 PM »
I'm having some issues with a layout with nested components. I've a container widget, scrollview, grid, and collections of widgets as entries including a label and slider. It's been working great, animating into view, scrolling, etc., but it's starting to play up. First I had a bug where changing my container Tween To Position from 100 to 110 caused the contents to not be drawn at run time. Viewing in edit mode while running, the contents of the grid were all invisible but positioned correctly. Changing Tween Pos back to 100 wouldn't return the contents and I had to undo to pre-change state. I was typing up a support post when I thought maybe it was a clipping issue, so I change my label so it didn't overlap the screen's edge and the layout seemed to work. But now moment's later I'm encountering random times when the contents aren't drawn.

It's working at the moment so isn't reliably repeatable. Is there any known issue I need to watch for?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #1 on: January 05, 2014, 05:12:07 PM »
Nothing comes to mind... but if you figure out what the issue is or narrow it down more, I can have a look. Right now I'm not aware of anything.

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #2 on: January 08, 2014, 04:14:40 PM »
My scrollviews now aren't being drawn when the game is run in Unity until I scroll them. This is consistent and I can provide a project file that exhibits this behaviour. They are drawn on Android when built and distributed though.

matdru

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #3 on: January 10, 2014, 06:13:18 AM »
Hi Shifty, i know exactly what issue are u talking about, few weeks ago we were discussing it here on forum that there is an issue with scroll view items being tweened and not appearing until the scroll view is touched/moved. We even came up with a temporary solution but apparently as of the new ngui update the depreciated variable of UITweener that we were using is gone -> my solution is no longer viable. I'll try to come up with something and will post it here if i succeed :)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #4 on: January 10, 2014, 02:33:58 PM »
Thanks. Is it only an issue in development and not during release? Because if so, I can always disable the tween on start and just start with the UIs in place while constructing them.

BehindTheStone

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 135
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #5 on: January 10, 2014, 04:49:30 PM »
Interesting, if I understand you right I have the same problem: http://www.tasharen.com/forum/index.php?topic=7455.0

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Scrollview contents randomly not drawn
« Reply #6 on: January 15, 2014, 05:13:52 AM »
It looks like it. There are no drawcalls for the scrollview until I scroll it, just like 'fpuig' in that thread.