How to make a progress bar(non uniform shape)

I have read a sample in unify that teach how to do.
But I’m still not sure how to do. It says use the material on an object.
It is 3d object or what kind of it. If it is 3d, so it is not UI?

Is there any other way to do it. Actually I want to make a sword shape progress bar.
Any ideas can help me?

Take a look at this previous question. That might get you off on the right foot.

The most assured way to produce whatever you want is to make a series of bitmap images representing the progress. You could make 10 for each 10% or 20 for each 5% or whatever, then set a GUITexture appropriately as it goes.