Dynamically alter the height of a texture in a layered material

Hi - is there a way to dynamically alter the height of a texture in a layered material ?
Its for an energy bar that will be attached to the player (for use with a VR headset).

I think it’s better to use a 3D widget with a progress bar .

Thanks that works - I used this tutorial Unreal Engine 4 Tutorial - 3D Health Bar (NPC's) - YouTube
Hopefully it will display ok in VR mode