Animated healthbar

So I’m asking how would be best to make animated health bar like

/ Diablo 3. What would be best kind of approach for this? Any kind of hint would be nice

Thanks already !

The animated red part looks like a animated shader applied to a simple 2D circle (which also makes sense given the title of the video). It’s probably applied to a quad, and the shader renders the circle, leaving the area outside the circle transparent. You can generate the cloudy red texture in an image editor by running a plain image through a noise filter.

The white shine spot looks like a static texture – maybe another quad rendered on top of the red quad.

You can probably use something like the Procedural Circle Mask shader on the wiki. If you don’t want to add cycling animation to the shader itself, you can just animate Material.mainTextureOffset in a loop.

Here’s a tutorial on shaders if you want more info: http://unitygems.com/noobshader1/