Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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.

Product Version: Not Selected
more ▼

asked Feb 03 '15 at 09:19 PM in Blueprint Scripting

avatar image

78 26 28 37

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

alt text

alt text

Make it a great day

more ▼

answered Feb 03 '15 at 10:11 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 523

avatar image timetravel Feb 04 '15 at 09:10 PM

Thank you very much Rudy!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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?

more ▼

answered Feb 03 '15 at 09:29 PM

avatar image

The Britain
73 19 14 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question