Author Topic: Round clipping and vertical clipp health bar  (Read 3747 times)

Nseries

  • Guest
Round clipping and vertical clipp health bar
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Round clipping and vertical clipp health bar
« Reply #1 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.