I am trying to stop audio when player unfocus but couldn't find a solution. When I check the "pause on unfocus" option, It just works when I preview the game on c2. But after I export the game, this option doesn't work.
I really appreciateif someone help me about this issue.
Yes "pause on unfocus" only works during preview.
What you mean exactly? You want to stop the audio when the game is not on focus?
The audio is automatically stop when the page / game is not on screen (minimized / unfocus).
Regardless the "focus on" is activated or not. (in my case)
DAG Thanks for your reply.In PC, audio stops when switching browser tabs but not windows or clicking on desktop. I want to stop audio in all unfocus situation like in C2 preview.
Develop games in your browser. Powerful, performant & highly capable.
I have the same problem, I wonder if there's a solution to stop audio when switching window! If someone can help...