Animation puzzle

Hi all, I want to use a ring to represent a timer in my game, but am struggling to think of a way to do it efficiently.

One way to approach it would be to create an animation of a ring filling up from zero to full with alpha background, then place this on a movietexture.

This seems clunky, as I would struggle to adjust the animation speed and I’ve heard that you can’t use movietextures on iphone releases (although this may not be a problem).

Does anyone know of a more elegant way to do it?

no takers?

would it be possible to animate a torus shape growing over a number of frames in Maya maybe? Haven’t done much mesh animation in Unity yet so not sure if this would work…

How about programatically creating a mesh in the shape of a ring? It’s only basic sin/cos to plot an inner and outer radius, and if you set the UV coordinates correctly, you could even apply a gradient texture to make the ring go from green to yellow to red or something like that.

That’s what I do in my current game (although I don’t bother with the UV coordinates) which isn’t being developed in Unity, but I can’t see why it wouldn’t work just as well with Unity.