Hi,
What you’re asking for, is possible. All you need is to be a little tricky. Here take a look at my approach;
-
Add two components to your widget, a progress bar and a slider (The progress bar is going to play the role of the slider bar in my approach).
-
Make the slider bar fully transparent, so it won’t be visible anymore.
-
Make the x size of both components equal and choose a same anchor for both as well. (Both components will overlap)
-
Bind both components’ values to a same function and follow my sample setup (I have bound both values to a float variable from my character BP);
Widget designer
Widget designer
Bound function
Inside the HUD BP
Scene
The thing is, I’m setting the progress bar and the slider values based on my character health. You can set their value based on whatever you want, like a mouse click for instance. Or you can communicate with the widget from another BP. By the way this is a possible way to make it happen. Hope it helped.
Regards,