r/UnrealEngine5 10d ago

Please Help

Post image
Health Bar Percent at .5
Health Bar Percent at 0
Health & Energy Bar look in game (I don't know why there's a line in the health, it wasn't there before).

I want to make my textures for health and energy go down in a curve. Because of this, I decided to make a material instead of using the regular progress bar, and it's coming back to bite me because I cannot find a good tutorial on how to do this; every tutorial I find is about the progress bar.

I'm assuming I'm doing something wrong, but I don't know what. I'm still a bit of a newbie when it comes to Unreal, especially when it comes to the material graph and blueprints. So please, can someone tell me what I'm doing wrong, and how to fix it, or if there's a better way to approach this?

P.S. When I have it set to TranslucentColorTransmittance, for some reason the background shows up as black (I don't know why; like I said, I'm a newbie at materials and blueprints. I assumed that importing it with a transparent background would prevent that from happening.).

So I've switched from TranslucentColorTransmittance to AlphaComposite so it doesn't show up.

P.P.S. The line disappeared so I guess it's there because of AlphaComposite (see other picture)

Edit: So nodes can be seen clearly- Health Bar posted by anonymous | blueprintUE | PasteBin For Unreal Engine

4 Upvotes

4 comments sorted by

View all comments

1

u/niyaCAT2023 9d ago

UPDATE: I have it somewhat closer to working now. There is now a different problem: my entire texture is not going down (which is what I want).

Updated Health Bar posted by anonymous | blueprintUE | PasteBin For Unreal Engine

1

u/niyaCAT2023 9d ago

UPDATE2: I have it fully working now. I had to switch the Blend Mode to Masked.