Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nguiman on April 10, 2014, 09:08:12 PM

Title: UIPanel and UIWidget interoperability
Post by: nguiman on April 10, 2014, 09:08:12 PM
I have a UIPanel/UIGrid (no UIScrollview) under a UIWidget container, I'm using the panel's 'Soft Clip' to constrict the grid to within the widget as it scrolls. But I find that the panel (and all elements under it) flicker as it scrolls and the UILabels (dynamic fonts) for each item are illegible (looks like white boxes that flicker as well).

I tried separating each by depth, but that didn't solve the issue.

How can I resolve this? and what is causing it?
Title: Re: UIPanel and UIWidget interoperability
Post by: ArenMook on April 11, 2014, 07:15:40 AM
Pic? Version of NGUI? There is no "Soft Clip" anymore in the latest.
Title: Re: UIPanel and UIWidget interoperability
Post by: nguiman on April 11, 2014, 12:40:01 PM
v3.0.7 f2, and its unlikely I can upgrade since that could break other UI dependencies.

Attached is what I'm seeing, trying to translate the UIPanel/UIGrid in the inspector. The entire panel and content flickers on and off (and not necessarily together) when within the panel's visible non-clipped region.

I'm further having difficulty placing the UIPanel and its hierarchy over a UISprite.

Also where is Soft Clip being set now?
Title: Re: UIPanel and UIWidget interoperability
Post by: ArenMook on April 12, 2014, 04:26:08 AM
That explains a lot. 3.0.7 is extremely old. There's not much I can do if you can't upgrade. I release fixes every update.
Title: Re: UIPanel and UIWidget interoperability
Post by: nguiman on April 16, 2014, 02:18:35 PM
are UIWidgets now able to Soft Clip? or has that feature been removed entirely?
Title: Re: UIPanel and UIWidget interoperability
Post by: ArenMook on April 17, 2014, 10:54:49 AM
Soft clipping is the only clipping shader that remains. It hasn't been removed, but the shaders have been renamed.