Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nils on September 14, 2012, 11:26:05 AM

Title: Clipping doesn't work
Post by: nils on September 14, 2012, 11:26:05 AM
Hi! I encounter some problems using the clipping feature of a Panel. I have set up a clipped Panel containing a UISprite displaying just a texture. However, as soon as I switch on any kind of clipping the sprite disappears. During some testing and moving the clipping bounds around I found out that the sprite sometimes get displayed but only in solid color, not the texture as it should. The ScrollView (Panel) example that comes with nGUI shows the same behaviour. I'm using v2.1.6 and Unity 3.5.5f2, any help is greatly appreciated, thanks.

Nils
Title: Re: Clipping doesn't work
Post by: AndyGFX on September 14, 2012, 03:55:40 PM
First-time i had problem too. Try this step-by-step tutorial.  http://www.tasharen.com/?page_id=4444 (http://www.tasharen.com/?page_id=4444)
Clipping works cool.
Title: Re: Clipping doesn't work
Post by: nils on October 07, 2012, 01:16:31 PM
I don't think that this would solve my problem. When I just open and run Example 7 - Scroll view Panel it's broken too and looks like in the attached screenshot. Has anyone similar problems?
Title: Re: Clipping doesn't work
Post by: Nicki on October 07, 2012, 01:59:26 PM
Looks like a shader problem. Are you using OpenGL ES 2.0? GLES1.1 is not supported.
Title: Re: Clipping doesn't work
Post by: nils on October 07, 2012, 03:19:07 PM
Thanks Nicki, that was the hint I needed.. Actually I switched to general armv6+armv7 support on iOS player settings and switched back and forth between web player and iOS platform. Now everything works. Thanks!