I’m still a beginner with Unreal Engine and I always try to get a solution on my own, find a workaround or search with google or using also here the search function. But I haven’t found a solution yet, so here are my (2) questions:
Is there a better way to fill a progress bar with delay than using delay function?
This progress bar is triggered by click (UMG) and should fill with some delay (~1sec).
But if the button is more often than clicked than once a second, it should also work and restart filling up progress bar.
(Later I’ll plan to implement more progress bars with higher delays, which should result in a cooldown, but this one should have no cooldown.)
This solution (with delay) also is a showstopper to put this whole into a function.
After another requirement is met, I want to trigger this (click) event and it’s progress bar by another UMG button.
After some research I added additionally custom event (1_Click) to call this from another button click, but UE crashes.
Thank you very much for your advices!
I’m not entirely clear on what you mean by “fill with delay”. Are you trying to animate the progressing bar filling up from 0-1 over the course of 1 second?
Yes exactly, my current solution is shown in the screenshot, using 3x times delay function to fill up relevant variable for the progress bar in steps 0,33 - 0,66 - 1.
You could try a timeline node, it allows you to change values over time while calling it only once. You set one or more “tracks” of values and the node “updates” based on tracks and outputs. If you enter the timeline node from the “Play from Start” pin, it’ll restart from the beginning every time it’s called. You set up the tracks by double clicking on the timeline node.
Hello, Add Timeline seems only in HUD_Class available, not in the displayed Widget itself.
I’ve tried to create one in the class and access it in the Widget, but I haven’t found a solution for your approach yet.
I’ve checked out Basic UMG UI Animation - #48 Unreal Engine 4 Beginner Tutorial Series from
Virtus Learning Hub / Creative Tutorials:
: Basic UMG UI Animation - #48 Unreal Engine 4 Beginner Tutorial Series - YouTube
- I’ve created a Timeline direct in the widget (@Designer, like in the tutorial described) and
- Using in @Graph “Play Animation” (Target is User Widget), when I press play in the animation editor, the progress bar fills up like intended after button is hit.
Thanks for advice me in the right direction!