I'm loading in a component the unityloader javascript and instantiate in the mounted section of my component. Everything works fine until I click on a router-link or nuxt-link. The DOM is probably modified at that moment and the game instance is losing the control on the DOM and start looping.
I would like to destroy the unityloader but there's no clear documentation on this generated code. Any idea on how I could do this?
keep-alive maybe?
this.gameInstance = UnityLoader.instantiate('unity-container', this.src, params);