Looking for another way to go fullscreen in WebGL

Hi all,

The default template uses gameInstance.SetFullscreen(1) to go fullscreen.
One major disadvantage is that pressing the full screen button does nothing if the project is still loading.

I’d like to find a way to make a game go fullscreen even is it’s still loading. I could make the browser go fullscreen, but that just makes the page go fullscreen, not the gameInstance.

Any thoughts?

Maybe some kind of little Javascript blob you write yourself that intercepts that built-in call, then perhaps fires off a timer to check a few times a second if the loading has finished, and when it has, THEN call the original SetFullcreen(1).

I have no idea how to go about that, but that’s probably about where I’d start looking. Don’t have a lot of time in Javascript but it seems rife for these sorts of little hacks. :slight_smile: