Circular Bar Transparent gradient
HelIo, I want to make a circular bar with semi-transparent ends like this
I already tried faking it by using the filled image and in combination with some button container that follow the cap end based on the fill ammount. The problem is that i can't get the transparency done.I also tried faking it with a mask using fill image and then rotate the entire bar on some vector3 but then i realised that this works great only with basic color and I want to use textures onto it and it's not the effect that I want. I'm thinking about a shader but i don't know how to write it by myself. PS: I'm using the new ui system from unity 5.
EDIT: I've read about that ui use the stencil buffer with is either on or off. So I guess this is not something possible to achieve using the new ui?