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.
asked Jul 01 '16 at 06:39 PM in Blueprint Scripting
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.
answered Jul 01 '16 at 09:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here