Author Topic: UIDrag Panel and Clipping Issue  (Read 5413 times)

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
UIDrag Panel and Clipping Issue
« on: May 09, 2014, 09:06:00 AM »
I read through some of the other issues and I seem to have a different issue.

So what I have is a Dragable Panel with a clipping mask on it, and content below it.  When it starts up everything is fine, everything is clipped.  When you scroll or drag the bar down clipping stops everything shows up, it scrolls, and then clips again.  It's almost like clipping gets disabled when you drag or scroll.

Things Already Checked:
1. Everything is 1, 1, 1 scale
2. Renderer is Unlit, Transparent Color
3. Z axis is set appropriately

Any suggestions?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #1 on: May 09, 2014, 09:27:33 PM »
I am guessing your quality settings must be set to "Fastest", turning off shader support. You need shaders turned on, or clipping won't work.

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #2 on: May 12, 2014, 05:53:12 AM »
ArenMook, thanks for the response, currently I'm testing in the editor is there a setting for that there?

Here's a video of the issue.  https://www.youtube.com/watch?v=DcyruMzbygQ&feature=youtu.be

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #3 on: May 12, 2014, 04:28:48 PM »
Edit -> Project Settings -> Quality.

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #4 on: May 13, 2014, 08:55:48 AM »
That didn't seem to change anything.  Still shows up as you scroll and then disappears when you stop moving.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #5 on: May 13, 2014, 09:11:36 AM »
Well, there are only 3 reasons for this happening.

1. Old version of NGUI with nested panels (such as a panel inside a scroll view).

2. Quality settings set to "Fastest". Fastest means no shader support, so clipping doesn't work properly. It must be set to something else.

3. Missing NGUI shaders. NGUI's clipping support is done by replacing shaders at run-time, and they are pulled from the Resources folder.

Likewise if you are using your own shaders, clipping won't work (and latest version of NGUI will warn you of that fact).

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #6 on: May 13, 2014, 12:35:23 PM »
Thanks!  Hopefully with this I can locate the issue.  We are using a slightly older version, and our current game is to a bit to far along to switch atm ( to many things to change).

So I thank you so much for the advice and at least where to look to locate the problem :)

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #7 on: May 14, 2014, 06:58:50 AM »
Found the issue!  That specific panel had depth pass on.  Seems that caused the issue.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #8 on: May 14, 2014, 07:03:07 AM »
Depth pass feature was removed a long time ago. You really should update...

midwinterdreams

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UIDrag Panel and Clipping Issue
« Reply #9 on: May 16, 2014, 06:33:20 AM »
Yeah I would love to update so bad.  I've played with the newest and tried to implement, but to many errors and we release in August so kind of to tight of a deadline.