Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on June 30, 2012, 06:59:56 AM

Title: NGUI support masking?
Post by: shokinhan 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?

Title: Re: NGUI support masking?
Post by: Nicki 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.
Title: Re: NGUI support masking?
Post by: ArenMook 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!
Title: Re: NGUI support masking?
Post by: shokinhan on July 01, 2012, 10:27:22 AM
dear Nicki:

Title: Re: NGUI support masking?
Post by: shokinhan 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.