Hi, for no apparent reason Im suddenly getting the error:
tabs=135357229&line=704&col=21&error=true): Uncaught TypeError: application.addTweenManager is not a function
I am not working on any tweens and all I recall doing prior to the error was creating some folders in my project and organizing some files. I have tried re-uploading the script, restarting my Pc etc but the error persists.
How do I phyically import it from github? What does that mean? (sorry if that is a dumb question, it’s just not apparent to me at first or second thought )
I find that after an update with new tweener.js the .start() function must be placed before the .on(‘complete’…‘update’… and other events.
Code like this:
The github overview (GitHub - playcanvas/playcanvas-tween: A tween library for PlayCanvas) now includes events like onComplete, onUpdate rather than .on(‘complete’,…) . I have tested them and there is no error when onComplete is before .start() in this kind of animation call.
Probably it looks like this work properly, because you exclude .on() (which is not working anymore) from the tween. Instead you need to update the code and use .onComplete().