Author Topic: Clipping doesn't work  (Read 3945 times)

nils

  • Guest
Clipping doesn't work
« 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

AndyGFX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 24
    • View Profile
    • AndyGFX
Re: Clipping doesn't work
« Reply #1 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
Clipping works cool.

nils

  • Guest
Re: Clipping doesn't work
« Reply #2 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?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Clipping doesn't work
« Reply #3 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.

nils

  • Guest
Re: Clipping doesn't work
« Reply #4 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!