Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: capitalj on May 08, 2014, 01:26:54 AM

Title: Dynamic labels and soft clipped panels
Post by: capitalj on May 08, 2014, 01:26:54 AM
This is odd, and might just be limited to iOS platform, but dynamic font uilabels don't seem to show up (are invisible) when placed under a panel that has soft clipping turned on. If you turn off the soft clipping the uilabel appears, or if you move the label to another panel.
Title: Re: Dynamic labels and soft clipped panels
Post by: ArenMook on May 08, 2014, 02:52:18 AM
Check the quality settings. Odd issues related to clipping only generally happen when the user chooses "Fastest" quality setting.
Title: Re: Dynamic labels and soft clipped panels
Post by: capitalj on May 08, 2014, 03:00:44 AM
Yeah, I tried that after reading up some other posts about soft clipping. I've tried a few different quality settings and nothing restored the label.
Title: Re: Dynamic labels and soft clipped panels
Post by: capitalj on May 11, 2014, 10:17:16 PM
This also doesn't work on Web Player platforms. Any chance this might have been addressed in the latest release?
Title: Re: Dynamic labels and soft clipped panels
Post by: nzen on May 12, 2014, 12:27:22 AM
EDITED
Title: Re: Dynamic labels and soft clipped panels
Post by: ArenMook on May 13, 2014, 07:53:07 AM
Are you using you're using the latest NGUI with proper shaders? Make sure that Unlit - Text shader is used and that it has alternate versions:

Unlit - Text 1
Unlit - Text 2
Unlit - Text 3
Title: Re: Dynamic labels and soft clipped panels
Post by: capitalj on May 13, 2014, 09:54:20 PM
I have those 3 shaders installed, but how do I know which text shader is being used on the font? When I select the label it shows None as the material and if I select the Font in the project hierarchy it won't let me edit the material or shader (which looks like it's set to GUI/Text Shader)
Title: Re: Dynamic labels and soft clipped panels
Post by: ArenMook on May 14, 2014, 06:21:58 AM
Open up the Draw Call Tool and double-click on the material. You will be able to see which shader it's using.
Title: Re: Dynamic labels and soft clipped panels
Post by: capitalj on May 14, 2014, 12:46:14 PM
Ok, most of the fonts say "Unlit/Text" and the ones in the scrolling panel say "Hidden/Unlit/Text 1"
Title: Re: Dynamic labels and soft clipped panels
Post by: ArenMook on May 14, 2014, 11:34:40 PM
Then the correct shader is being used. Do other things get clipped? If not, are shaders actually enabled? ARMv6 / GLES 1.1 = no shaders. If other things get clipped, is there any non-uniform scaling of panels happening?
Title: Re: Dynamic labels and soft clipped panels
Post by: capitalj on May 14, 2014, 11:37:59 PM
Yes, all other sprites work properly and are nicely clipped. Just the labels don't appear at all with soft clipping on (iOS/Web player), but they work fine on PC standalone. This also happens in builds, not just the editor.

The iOS setup is for Arm7.
Title: Re: Dynamic labels and soft clipped panels
Post by: ArenMook on May 14, 2014, 11:54:18 PM
I skyped you but you don't seem to be responding so making a post too. I just tried this...

1. New scene
2. Added a scroll view
3. Added a dynamic font-using label to it
4. Added drag scroll view to the label (and a collider)
5. Built for web -- clipping works in the browser just fine.