Hersir Posted March 27, 2018 Share Posted March 27, 2018 Hi, Wanted to ask why .animate was added to Animatable.reset function in 3.2? public reset(): void { var runtimeAnimations = this._runtimeAnimations; for (var index = 0; index < runtimeAnimations.length; index++) { runtimeAnimations[index].reset(); } // Reset to original value for (index = 0; index < runtimeAnimations.length; index++) { var animation = runtimeAnimations[index]; animation.animate(0, this.fromFrame, this.toFrame, false, this._speedRatio); } this._localDelayOffset = null; this._pausedDelay = null; } Is reset some sort of restart now ? could not find any info on documentation Thank you alvov 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2018 Share Posted March 27, 2018 Yep reset() is not stop(). I wanted reset() to reset the animation to its initial state Hersir and alvov 2 Quote Link to comment Share on other sites More sharing options...
Hersir Posted March 28, 2018 Author Share Posted March 28, 2018 @Deltakosh Thanks for clarification. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.