NGUI labels are fading out on iOS device

671 Views Asked by At

I am facing a bizarre situation that is, I have made NGUI panel with sprites and labels and these are working fine on unity editor but when I make a build on iOS device sprites are working as expected but labels are being shown for 0.2 or 0.3 second and then fade out suddenly . can anybody tell me what may be the problem ?

1

There are 1 best solutions below

0
On

If your labels and sprite are on the same depth, then it probably is a depth issue.

The reason why it looks good in the editor, could be different z sorting on different platforms. On mobile platforms it could be even more random, on different runs.

If you want something to be above other widget, it should have higher depth value (assuming you are using the new 3.x.x NGUI), than you will be certainly sure that it will look good on all platforms.

On the older 2.x.x NGUI not only depth is important, but also a source texture (is it the same or are there two different textures) and a position z value.