Hi guys, I’m doing a project in which I have a lot of progress bars which I control with variable that I increment with + and - buttons. Here’s how it looks like:
I have a working Blueprint code that does the job as I want it, but since everything’s the same for each progress bar and buttons, only variables change, I want to make two functions, one for incrementing and one for decrementing, which would accept all these variables as inputs. So the function would look like this.

For every progress bar I would hook up related variables as input to this function. But the problem I have is that my variables are not incrementing properly when I use them like this. Here’s a simplified incrementing function with only one variable:

Value is just a variable that we want to increment now and Increment function is like this:
The logic here is that, I would plug input variable of type float, and every time I press + button it would increment that variable’s value by 1 which would then increase progress on progress bar and etc. But the problem is that this increments my variable’s value only once, and it won’t increment it anymore. If my knowledge of increment serves me well, it should increment variable by 1 and set it’s value to incremented value each time it’s pressed. But it’s not happening here.
So what am I doing wrong and how do I solve this?
I’m doing everything in one Blueprint for my UMG. Also I could collapse my working code for each progress bar into functions, but then I’ll have 15 functions that do the same thing and only difference is a few variables that they’re controlled by. So I want to make 2 functions which would accept inputs from every progress bar and do the work.


