Author Topic: Can UIPanel use a mask to clip panel?  (Read 4148 times)

invincible0918

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Can UIPanel use a mask to clip panel?
« 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 ?

gotstyle

  • Guest
Re: Can UIPanel use a mask to clip panel?
« Reply #1 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.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Can UIPanel use a mask to clip panel?
« Reply #2 on: May 06, 2013, 11:58:30 AM »

MrTact

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 32
    • View Profile
Re: Can UIPanel use a mask to clip panel?
« Reply #3 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.

invincible0918

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Can UIPanel use a mask to clip panel?
« Reply #4 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.