texture masking in the GUI

Hey, I was wondering if it's possible, or if there is a work around to apply a mask to a texture thats used as a GUI element? For example, If I wanted to show a HP bar, or something along those lines, I can have the base image, the actual bar, and then a mask image that will move/scale on top of the actual bar to make it disspear, giving it the illusion that your HP is increasing/decreasing.

I know in that example, I can just scale the HP bar, and do something similar, but for what I am trying to do, I have a circular hp bar, and so I wanted to have a mask that I can rotate to give the effect explained above. Any ideas? Thanks.

You could use GUI Groups to clip GUI content.

Take a look at the examples of the reference for Layout Modes.

As it turns out this exact question was answered by Eric5h5 a while ago, here. I've been wondering about this for a while now, I'm glad the solution is as easy as it is.