How do I change the Background Image in a Progress Bar in BP?

There is no binding under style for the progress bar. I would like to change the background image of the progress bar depending on a certain variable.

Ditto. Trying to sort this one out myself. Don’t see a function in the graph for changing anything related to this image either.

So here’s what I’ve found while digging around, maybe it can help a little bit. If you grab your progress bar and bring it into your graph, you can use a “Set Widget Style”, which breaks off into three images. You can then set these images using Texture2D References >> Make SlateBrush. I’m still sorting out how exactly I want mine set up, but maybe this can push you towards the answer you’re looking for.

For my example, when you select a weapon at the beginning of the game, I need it to update a few things - the progress bar’s color and image set being the relevant ones here. I’ve got a data structure set up that carries these and about a billion other pieces of info about my weapon around to the various BPs that need to access it. So here, I’m setting my fill color and opacity (although breaking opacity off for style change), then setting widget style.

1 Like

Thank you for your help! I got it figured out the way I wanted it. I Went into my HUD widget event graph and used the Event Construct function to set the progress bar’s widget style.

2 Likes