Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: midwinterdreams on May 09, 2014, 09:06:00 AM

Title: UIDrag Panel and Clipping Issue
Post by: midwinterdreams 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?
Title: Re: UIDrag Panel and Clipping Issue
Post by: ArenMook 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.
Title: Re: UIDrag Panel and Clipping Issue
Post by: midwinterdreams 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
Title: Re: UIDrag Panel and Clipping Issue
Post by: ArenMook on May 12, 2014, 04:28:48 PM
Edit -> Project Settings -> Quality.
Title: Re: UIDrag Panel and Clipping Issue
Post by: midwinterdreams 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.
Title: Re: UIDrag Panel and Clipping Issue
Post by: ArenMook 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).
Title: Re: UIDrag Panel and Clipping Issue
Post by: midwinterdreams 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 :)
Title: Re: UIDrag Panel and Clipping Issue
Post by: midwinterdreams on May 14, 2014, 06:58:50 AM
Found the issue!  That specific panel had depth pass on.  Seems that caused the issue.
Title: Re: UIDrag Panel and Clipping Issue
Post by: ArenMook on May 14, 2014, 07:03:07 AM
Depth pass feature was removed a long time ago. You really should update...
Title: Re: UIDrag Panel and Clipping Issue
Post by: midwinterdreams 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.