This is the accepted way of doing a circular progress / health bar:
However, it has a number of minor issues:
- No anti-aliasing so you have to hide the edges under another png
- Uses alpha cut-off, not very good for iOS
Here is an alternate method using a torus with the UVs straightened out:
http://dl.dropbox.com/u/3838312/torusProgressBar.unitypackage
The benefits:
- Can use any shader
- Can be transparent or opaque
- Anti-aliased
- Does not use any weird technique so can be batched up
The issues:
- You don’t get a perfectly straight edge at the tip of the bar (could increasing poly count help with this?)
The reason I’ve done it is for an iPad game I’m working on, desktop users may not see any advantages really…
Anyway, just thought I’d share!