Video Texture js (classic) does not work, and interferes with Tween library

Hello and thanks in advance for reading, i am having an issue with the video texture script in my project, i was trying to incoporate the new mjs version of it in another project since the old js version was not working, it has caused the tween library to be undefined, so i reverted back to the js version. But it still doesn’t work so i use a new project to test it out here:

  • currently using js version in the project with a tweening box, when mjs scripts are added tween will not work.

Project link: PlayCanvas 3D HTML5 Game Engine

can anyone shed a light on this?

Try using mjs version of the tween library: playcanvas-tween/dist/tween.mjs at main · playcanvas/playcanvas-tween · GitHub

The js version is not supported in projects where you use other mjs files.

okay it works now, thanks, but why does the original js version of video texture does not work anymore?

I don’t know, you might need to ask the person that wrote that script. Or compare old vs new that works.

alright thanks for the info!