Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

1)Fill progress bar with delay after click and 2)call it from another button


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:

1) 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.

2) 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.

alt text

Thank you very much for your advices! Best regards

Product Version: UE 4.20
progressbar.png (108.1 kB)
more ▼

asked Oct 25 '18 at 01:49 AM in Blueprint Scripting

avatar image

3 1 4

avatar image PixelOmen Oct 25 '18 at 04:32 AM

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?

avatar image Paranoya84 Oct 25 '18 at 12:36 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

alt text

timeline.jpg (104.2 kB)
more ▼

answered Oct 25 '18 at 05:22 PM

avatar image

617 21 16 35

avatar image Paranoya84 Nov 05 '18 at 08:47 AM

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: [link text][1] [1]: https://www.youtube.com/watch?v=F4QvCXO9XaQ

1) I've created a Timeline direct in the widget (@Designer, like in the tutorial described) and 2) 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!

Best regards,

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question