My WebGL game won't unload
I have a website where I am hosting my WebGL games. Lets say I open Game1 and its music plays, if I then click on a navigation button on my website and am now on my homepage for instance I can still hear Game1 running.
Why does it persist in the background even though I am no longer on that page?
This is a nightmare because if I have a user switching between games they will both go deaf and their browser will eat up all of their resources.
Please can someone help?
Answer by LinksCourage · Apr 20 at 04:59 PM
Setting all links to be target="_parent" did the trick
Your answer
Follow this Question
Related Questions
Scaling Unity WebGL Canvas causes a bad performance 0 Answers
Getting Values In Unity From Webpage 0 Answers
unity webgl, angular js directive, 2 Answers
Game in browser- but without WebGL 0 Answers
WebGL to Weebly Website 0 Answers