Play audio source on WebGL without clicking the canvas
Hello,
I published my game on a website.
Using the Unity editor, the audio source plays at the beginning of the game as expected, when I run it from the web it doesn't play the sound or make the screen full until I click on the WebGL' canvas.
One click on the WebGL canvas, plays the audio, and make it full screen.
Can you help me please to make the audio and full screen start at the beginning. For now, i changed the index.html file to make it fitting the window not the full screen
I have Unity 2021.3.12, I placed the script that play the audio or to make it full screen on the camera in void Awake() and void Start(), i tried them one by one but same issue
Thanks
↧