Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Camille on June 01, 2015, 11:18:55 PM

Title: UILabels messed up
Post by: Camille on June 01, 2015, 11:18:55 PM
Hi there

I have a large table of UILabels (manually set up, not using UITable) which used to look fine, and then somewhere along the way they all got broken and look really messy and illegible. There are two other tables in my UIPanel which are set up in exactly the same way, which look as they are supposed to. For some reason just this one table has gotten broken.

Please see attachment for example of broken + not broken tables.

The UILabels are set up as NGUI Fonts.

I have tried:
- Changing them to Unity fonts
- Changing sizes
- Changing overflow to clamp instead of shrink
- On the Font Prefab, re-assigning the references to TTF Font and Material
- On the Font Material, changing texture to something else and then back again
- On the font text file, changing "spacing=1,1" to "spacing=0,0" and then back again
- Checking all parents to see that their scaling is set to 1
- Turning parents on and off

Nothing seems to work. Any help would be appreciated!

Thanks

Edit: I've noticed it might not be the UILabels specifically... as in the attachment, you can see some of the boxes (UI2DSprites) are positioned incorrectly as well)
Title: Re: UILabels messed up
Post by: Camille on June 04, 2015, 02:11:33 AM
Update:

[And as another update, one of the other tables broke as well somehow]

So I tried moving all the UI elements into a new panel (that is set up exactly the same as the old panel), fixing up all the references and the text is now looking correct. However the boxes are still mis-aligned - I noticed for example if the anchor of the box is Left +0, and I change it to Left +8, it makes no change visually. Left +9 makes a visual change by the correct amount. Increasing the amount then makes no visual change up to Left +24, after which it starts squeezing the horizontal scale of the box. Really strange.

It's almost like the UI has a UV map that has become distorted, if that makes sense.
Title: Re: UILabels messed up
Post by: ArenMook on June 07, 2015, 12:39:56 PM
Check your scales. Did you tween the panel scale from 0 at any point? Select your panel, ALT+SHIFT+P.

Also for a large table, don't use anchoring. Anchors are slow.