Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: SlaynX on April 29, 2014, 06:37:57 AM

Title: NGUI with Spine2d object for UIPanel Clipping
Post by: SlaynX on April 29, 2014, 06:37:57 AM
I faced a problem where I need Spine2d gameObject to be clip by a panel for a UIScrollView purposes. It may seem that UIPanel Clipping only clip objects NGUI type objects or perhaps I could be wrong here.

ClippingPanel (z = 0)(UIScrollView)
    -> MenuBackground(z = -1)
    -> SpineObject (z = -2)

Note that I also use RenderQ on my panel 3000 because I want to use the z axis as my layer arrangement for NGUI and Spine2d as Spine Objects also is based on RenderQ 3000.

Any ideas? Thanks.
Title: Re: NGUI with Spine2d object for UIPanel Clipping
Post by: ArenMook on April 29, 2014, 01:41:32 PM
Only NGUI objects can be clipped by panels. It's done via special shaders. If you want non-NGUI stuff to be clipped, you will need to write custom shaders for those objects.