Author Topic: NGUI support masking?  (Read 6610 times)

shokinhan

  • Guest
NGUI support masking?
« on: June 30, 2012, 06:59:56 AM »
I want to make a rect hole in the picture, and can see in the rect's texture!

How to do?


Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI support masking?
« Reply #1 on: June 30, 2012, 10:59:03 AM »
You make your frame with built in alpha, and put a different sprite "in the hole" so to speak.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI support masking?
« Reply #2 on: June 30, 2012, 11:42:16 AM »
Nicki, you just gave me an idea on how to do minimap in Windward SP. Lower draw order depth shader using UITexture drawn before the minimap. Simple and effective!

shokinhan

  • Guest
Re: NGUI support masking?
« Reply #3 on: July 01, 2012, 10:27:22 AM »
dear Nicki:


shokinhan

  • Guest
Re: NGUI support masking?
« Reply #4 on: July 01, 2012, 10:29:56 AM »
dear Nicki:
      I want to control the position of  the "hole" in the picture, so we can't let the art make the hole.