How to make a progress bar in UMG go from green to red?

What I am trying to do is create a health bar that would gradually go from green to red depending on health. I already have a progress bar set to my health variable that works well, what I’m trying to do is make it turn red the closer it gets to 0. I assume there would be some kind of interpolation needed for this? This is my first time trying this sort of thing. If anyone could point me in the right direction that would be great!

Thank you.

Hello timetravel,

I have a simple example for you. This example is setup so that when I click a button it changes the color from Green to Red by .01 every click. I hope that this helps.

28891-simplelerphelp2.png

Make it a great day

Thank you very much Rudy!