Author Topic: UIDrag Scroll View Disappears  (Read 4166 times)

PaulGregory

  • Guest
UIDrag Scroll View Disappears
« on: December 16, 2013, 08:05:08 AM »
Hi. I'm on 3.0.7f3

One of my scrollviews disappears after scrolling, unless it's been left at the top.

Other scrollviews are fine.

This one happens to contain a UITable.

Is there an obscure setting or arrangement could I possibly have screwed up to make this happen, or has anyone else experienced this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Scroll View Disappears
« Reply #1 on: December 16, 2013, 08:12:43 AM »
What do you mean by "unless it's been left at the top"? Are all of your scroll view panels using unique depths? Does your erroneous scroll view's panel have "Visible" checked in its advanced options?

PaulGregory

  • Guest
Re: UIDrag Scroll View Disappears
« Reply #2 on: December 16, 2013, 08:31:37 AM »
What do you mean by "unless it's been left at the top"?
I mean that when you scroll up and down with you finger, if you take your finger off when the top of the contents are at the top of the scrollable area, the contents do not disappear. (They still cull, which can be seen if you have clipping off). If you leave the scrollview at any other point, eg scrolled to half-way down, the contents disappear. If I scroll again, they appear. The contents appear to disappear at the point that the dragging has stopped - ie when the scrollbar disappears.

Are all of your scroll view panels using unique depths?
I only have one active at a time, but yes they are using different depths and there is no warning about depths being used by other things.

Does your erroneous scroll view's panel have "Visible" checked in its advanced options?
No, and checking that doesn't make any difference.



PaulGregory

  • Guest
Re: UIDrag Scroll View Disappears
« Reply #3 on: December 16, 2013, 08:35:30 AM »
Oh, and it disappears both in the editor and on an Android device.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Scroll View Disappears
« Reply #4 on: December 16, 2013, 09:01:40 AM »
Sounds like your quality settings are set to "Fastest" which disables shaders.

PaulGregory

  • Guest
Re: UIDrag Scroll View Disappears
« Reply #5 on: December 17, 2013, 04:26:41 AM »
No. Although the quality does drop, it doesn't get down to Fastest.

Are you saying that the scrollbox changes rendering method when it's stopped moving? That makes sense as nothing in the inspector changes yet it disappears.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Scroll View Disappears
« Reply #6 on: December 17, 2013, 10:22:45 AM »
NGUI clipping is done by using shaders. Clipping will not work if:

1. Shaders are disabled (fastest quality setting, GLES 1.1 target, ARMv6 target)
2. You moved the shaders from their original place in the Resources folder.

ceng

  • Guest
Re: UIDrag Scroll View Disappears
« Reply #7 on: January 06, 2014, 06:28:00 PM »
I am also experiencing this problem using NGUI 3.0.7f3 with OSX 10.9.1 UnityEditor and iOS7 iPads (iPad Mini, iPad4). My hierarchy is similar to PaulGregory's, where a vertically-scrolling UIScrollView contains a UITable spacing multiple UIWidgets:

UIPanel + UIScrollView GameObject
-UITable GameObject
--UIWidget GameObject
--UIWidget GameObject
--UIWidget GameObject
--etc.

All UIWidgets in the UIScrollView disappear once the UIScrollView comes to rest unless the UIScrollView comes to rest so the first UIWidget is visible ("at the top"). The ScrollView clips the UIWidgets correctly throughout.

The NGUI shaders are located in Assets/NGUI/Resources/Shaders and I have set the quality settings as high as possible, so I do not suspect this is related to missing or disabled shaders.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Scroll View Disappears
« Reply #8 on: January 06, 2014, 09:38:16 PM »
Please update to the latest before posting about issues. Chances are the issue has already been resolved.