You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I really like your plugin - great work and easy to use.
As far as I understand, theater.replay() restarts the scenario as soon as it reaches its end - but I wonder if there's a way to instantly restart or otherwise reinitialize the whole scenario e.g. at the click of a button.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hey @bender2601, thank you for the kind words and sorry for the delay. Sadly, due to the way the internal state of each scene is handled, it's impossible to instant stop a scene (related to #59#50). It'd involve quite some work to implement with probably a lot of breaking changes :/
Thanks for the reply anyway - no worries for the delay. I read these related topics before - but I thought to completely "destroy" and then re-initializing the current scenario would be technically different and easier than pausing/stopping the current animation.
I'll look into it and see if you could get it working by "destroying" the instance but I'm afraid that the timeouts will remain and lead to a memory leak :/
zhouzi
changed the title
Instant restart or reinitialization of scenario?
theater.restart() to instantly replay the scenario from scratch
Feb 2, 2017
Hi, I really like your plugin - great work and easy to use.
As far as I understand,
theater.replay()
restarts the scenario as soon as it reaches its end - but I wonder if there's a way to instantly restart or otherwise reinitialize the whole scenario e.g. at the click of a button.Thanks in advance!
The text was updated successfully, but these errors were encountered: