Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Nseries on November 12, 2013, 12:12:30 PM

Title: Round clipping and vertical clipp health bar
Post by: Nseries on November 12, 2013, 12:12:30 PM
Hi all, I need your help. Anybody know how I can create round clipping for draggable panel and vertical clipp health bar?
Title: Re: Round clipping and vertical clipp health bar
Post by: ArenMook on November 12, 2013, 02:26:01 PM
Round clipping -- use stencils. I can't elaborate much on this however... clipping in the upcoming Unity GUI is all done through stencil buffers.

That said, I would suggest you use a mask instead. Looks like you're doing a player portrait, which is best done by having a UITexture with material that has a circular mask texture on it.

For the health bar, just use a filled sprite set to vertical mode.