✅ Solved: Pause, play, and restart an animation in the editor
TL;DR: I understand how to pause/resume an animation, but how can I also restart it in the editor?
After reading several posts here, I understand that the best way to play an animation, pause it, and resume from when it paused is to use a nested artboard and set it to Simple animation. Then, use a boolean to transition between speed 0 and 1 in the state machine.
play pause.mp4If I want to reset, I can use a boolean to transition between a simple animation and a remap animation that sets the playhead to 0 (Time set to 0%).
play pause reset.mp4Is it also possible to restart the animation in the editor? Here's a demo of my intent: I used two nested artboards here, so this can happen twice. Essentially, I would like to pause/play and restart infinity times.
play pause reset restart.mp4Any ideas? Or is this not supported yet in the editor?
.rev file →
pause_and_resume_test_2.revResources:
https://community.rive.app/c/tips-tricks/animation-pause-play
https://community.rive.app/c/support/setting-timeline-duration-at-runtime
https://community.rive.app/c/support/how-to-pause-timeline-after-mouse-enter