Hi there, after scouring the internet, I decided to just ask the question myself instead of banging my head against this problem as I cannot figure it out by myself.
I’m trying to make a progress bar in UMG which fills up when the player interacts with an actor in my scene. Once the player isn’t interacting with the actor anymore I want the progress bar to stop filling up and stay at the value until the player interacts with the actor again.
I Started with creating the HUD and binding a function to my progress bar which should fill up.
Then I created a variable called Studypoints in the actor BP. I let it gradually increase with a simple deltaseconds added to the value if the player has interacted with the actor.
In my function I made a variable of my actor BP and call the Studypoints variable from it, then divide it by 100 to get a percentage which I output into the return node on the function.
I know my calculations in my Actor BP are working because the printfunction shows the value increasing when the player interacts with the actor.
I also know that my HUD is enabled and it updates as I’ve already successfully added a “Press E to interact” prompt when close to the actor.
When I incorporate a printfunction inside my progressbar function, nothing will show which leads me to believe that my bound function never even gets called.
I’m pretty new to unreal so it might just be me overlooking a simple checkbox. But any help would be appreciated!