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!
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.
Make it a great day
answered Feb 03 '15 at 10:11 PM
Rudy Q ♦♦ STAFF
This is just off the top of my head, as I am not at my programming PC right now. Would a lerp work while using the slider as the driver?
answered Feb 03 '15 at 09:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here