Author Topic: Dynamic labels and soft clipped panels  (Read 4461 times)

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Dynamic labels and soft clipped panels
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #1 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.

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #2 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.

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #3 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?

nzen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #4 on: May 12, 2014, 12:27:22 AM »
EDITED
« Last Edit: May 12, 2014, 01:08:26 AM by nzen »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #5 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

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #6 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)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #7 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.

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #8 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"

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #9 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?

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #10 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic labels and soft clipped panels
« Reply #11 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.