Author Topic: Clipping UIPanel inside another UIPanel  (Read 2890 times)

damiancioo

  • Guest
Clipping UIPanel inside another UIPanel
« on: April 17, 2013, 01:52:41 AM »
Is it possible to one UIPanel make a clipping for another UIPanel

I have something like this:

UIPanel1 (with clipping)
---- UIWidget1
---- UIPanel2 (with clipping)
--------- UIWidget2

In my case UIPanel1 clips only Widget1, and everything which is in UIPanel2 is not clipped. How to achieve this?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Clipping UIPanel inside another UIPanel
« Reply #1 on: April 17, 2013, 02:04:19 AM »
You can't directly or easily.

The easiest way of actually doing it would be to have a Clipping rect on both panels and synchronize them in a custom script.

damiancioo

  • Guest
Re: Clipping UIPanel inside another UIPanel
« Reply #2 on: April 17, 2013, 02:32:42 AM »
That sucks :/ , hope it will be done in future versions, because in some scenarios it would be very helpful.
Thanks for the reply!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Clipping UIPanel inside another UIPanel
« Reply #3 on: April 17, 2013, 02:59:06 AM »
The question is, can't you do without the panel 2?

damiancioo

  • Guest
Re: Clipping UIPanel inside another UIPanel
« Reply #4 on: April 17, 2013, 03:25:23 AM »
Of Course I can, but that is an extra work for me, the question is, should the NGUI framework make my life easier and do that for me :)