Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: invincible0918 on May 06, 2013, 03:47:04 AM

Title: Can UIPanel use a mask to clip panel?
Post by: invincible0918 on May 06, 2013, 03:47:04 AM
Now the UIPanel only has rectangle clip,but i wanna use a mask texture to clip , such as a ellipse shape, how could i did this ?
Title: Re: Can UIPanel use a mask to clip panel?
Post by: gotstyle on May 06, 2013, 10:04:48 AM
I'm looking for the exact same thing :). It would be nice if we can use a custom alpha mask.
Title: Re: Can UIPanel use a mask to clip panel?
Post by: jeldrez on May 06, 2013, 11:58:30 AM
This is the only way I have seen:
http://pixelplacement.com/2011/02/15/masking-in-unity/ (http://pixelplacement.com/2011/02/15/masking-in-unity/)
Title: Re: Can UIPanel use a mask to clip panel?
Post by: MrTact on May 06, 2013, 03:33:16 PM
To be clear, are you trying to mask its children? Not really clear on how that works.

If you just want an odd-shaped window, you can always just draw the irregular shape and leave the background of the sprite transparent.
Title: Re: Can UIPanel use a mask to clip panel?
Post by: invincible0918 on May 07, 2013, 04:31:06 AM
Yes,I'm trying to mask its children,but now I still can't find a good way to achieve it.