I am working with playcanvas deployed in an Angular application and I am having some troubles.
I have an angular component which renders my Playcanvas app. It works perfectly, but when I change to another component (without playcanvas content) and come back to the first one I get the following error:
scripts.bundle.js:929 script registry already has ‘keyboardInput’ script, define ‘swap’ method for new script type to enable code hot swapping
This happens for every script I have in my Scene.
If I reload the page, it works as supposed.
- Is there any way I can force my scripts to fully reload instead of trying to Swap??
- Can I disable Hot-Swapping in my project or Scene?