I’m making a game with Unity WebGL. When I change the tab, the thread slows down, so when I make
<code>AudioListener.pause = true;
</code>
<code>AudioListener.pause = true;
</code>
AudioListener.pause = true;
the sound turns off with a delay of 2-3 seconds. My browser is Chrome. How can I intervene the Main Thread immediately when the tab changes.
Main thread cannot be back to me right way.
New contributor
Atalay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.