Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: PixelEnvision on April 26, 2012, 01:55:19 PM

Title: Small bug with Example 7
Post by: PixelEnvision on April 26, 2012, 01:55:19 PM
Hi,

I've just started playing with NGUI and noticed this problem. It's not a big deal but I'm just curious why it happens...

Steps to reproduce:
- Import NGUI to an empty project
- Open Example 7 scene
- Open Example 6 scene (or 5)
- Open Example 7 scene again...

Now when it's loaded back, all scroll items looks corrupted.

Is it me?

Using Unity Pro 3.5.1f2 switched to Android basic platform...
Title: Re: Small bug with Example 7
Post by: ArenMook on April 26, 2012, 03:31:34 PM
I've never seen or heard of anything like that, but my guess -- you have GLES 1.1 emulation turned on. Make sure it's set to GLES 2.0, or shaders won't work (and thus neither will scroll views).
Title: Re: Small bug with Example 7
Post by: PixelEnvision on April 26, 2012, 03:59:13 PM
I've never seen or heard of anything like that, but my guess -- you have GLES 1.1 emulation turned on. Make sure it's set to GLES 2.0, or shaders won't work (and thus neither will scroll views).

Thanks for the reply, but that's not it... it's set to GLES 2.0 all the time... I'm attaching a screen shot..

Btw, if I go between example 7 & 8 nothing happens, all ok...
Title: Re: Small bug with Example 7
Post by: ArenMook on April 26, 2012, 04:05:00 PM
Yup, that's exactly what it looks like when GLES gets set to 1.1, or if quality gets set to the lowest value, thus disabling shaders.
Title: Re: Small bug with Example 7
Post by: PixelEnvision on April 26, 2012, 04:09:53 PM
Thanks,

I've verified graphics emulation is set to 2.0, even tried changing it's values..

Another note, Example 9 also affected the same way and text becomes unreadable. So far only way to restore closing & reopening unity.

And a final note.. I can go between all the example scenes without a problem unless I open examples 5 & 6. As soon as I open those and go back to 7 or 9 display is corrupted...

So I assume, those scenes are setting something and it stays that way?

That's on Windows btw...
Title: Re: Small bug with Example 7
Post by: ArenMook on April 26, 2012, 04:15:14 PM
Yes, examples 5 and 6 have the ShaderQuality script on them that makes the shader level match the quality level.
Title: Re: Small bug with Example 7
Post by: PixelEnvision on April 26, 2012, 04:19:42 PM
Yes, examples 5 and 6 have the ShaderQuality script on them that makes the shader level match the quality level.

Ah gotcha, that's it... I've changed quality settings but it's not live and not reflected till I reload those scenes...

Now all good, thx!