Author Topic: NGUI with Spine2d object for UIPanel Clipping  (Read 5359 times)

SlaynX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI with Spine2d object for UIPanel Clipping
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI with Spine2d object for UIPanel Clipping
« Reply #1 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.