x

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"

Switch textures in UMG health meter

Hello! I am building a health meter and I can't seem to figure out how to switch textures out based on health level. Specifically, I have an asset that I'm using for normal health that will switch to a different asset when health is low. This is all built through UMG, 2D only.

I've followed a few tutorials I found here, mainly this one: https://answers.unrealengine.com/questions/44139/texture-change-with-blueprint.html but it's not quite working for what I want it to do. Is there another simpler way to swap textures out based on an event that is not a button press?

Thank you thank you!

Product Version: UE 4.10
Tags:
more ▼

asked Jan 21 '16 at 09:03 PM in Using UE4

avatar image

rleiker13
11 4 6 7

avatar image 1999 Jan 21 '16 at 10:56 PM

Changing texture is done through a Exec Blueprint wire. You want to get health and wire it to a if value, then Exec to change the texture.

avatar image rleiker13 Jan 21 '16 at 11:09 PM

Would you mind going into a little more detail? I don't have a ton of experience with blueprints.

avatar image 1999 Jan 22 '16 at 10:27 PM

I have no experience with Blueprints. This is step 14 you may want to use a near by step as well. This will get you very close to the answer. "https://wiki.unrealengine.com/Videos/Player?series=PLZlv_N0_O1gYup-gvJtMsgJqnEB_dGiM4&video=ZvY7yaAsn3A"

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

0 answers: sort voted first
Be the first one to answer this question
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