Author Topic: Small bug with Example 7  (Read 7238 times)

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Small bug with Example 7
« 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...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Small bug with Example 7
« Reply #1 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).

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: Small bug with Example 7
« Reply #2 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...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Small bug with Example 7
« Reply #3 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.

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: Small bug with Example 7
« Reply #4 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...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Small bug with Example 7
« Reply #5 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.

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: Small bug with Example 7
« Reply #6 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!
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube