UMG - stop all sequences playing
I've created a widget which is toggled on/off by pressing the i key - the widget has a button which launches a sequence player the first time it is pressed, and the second time it's pressed it skips to the end frame, and the player can then walk through the level... It works fine, but if the sequence starts playing, and then widget it then toggled off, then on again, a separate sequencer can be launched, which plays from the start, while the original one plays in the background. This can be done over and over, each time the widget is toggled off then on again.
Here is a screengrab of the BP:
Is it possible to set the play button in the widget to first stop any sequences that are currently playing, before creating a new one?
asked May 27 '18 at 08:45 AM in Blueprint Scripting
Aztecco - you are a certified genius!!! Thanks so much - promoting the widget to a variable worked a charm! Thank you so much!
If it helps anyone else, the widget BP ended up looking like this:
And the level blueprint promoting it to a variable and using the I key to open/ close it looked like this:
Thanks so much again for your help - I've learned lots by following your advice!
You may use a bool as a state and a branch instead of a multigate.. Don't forget to reset your state to 0 at animation end!
Hope it helps
answered May 27 '18 at 12:19 PM
This was my lazy solution. Count how long the sequence is, pause it
answered Jul 22 '18 at 05:20 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here