Been trying to get WebGL to fit the entire browser window (without scrollbars) recently. Found some old versions around the web that didn’t seem to work in the 5.6 beta. So I’ve managed to make a working template.
Hopefully this is helpful to someone!
Installation
Just download, import into Unity and select “FS_Adaptive” in the Player Settings under “Resolution and Presentation”.
Known Issues
Console sometimes shows
Could not extract GUID in text file projectsettings/projectsettings.asset at line 44.
Doesn’t cause any issues as far as I can tell… but use caution. I’ll update this if I manage to find out the cause.
Thanks The_BenEvans. This works great on Unity 2017.3.0b11.
I was wondering. What if I wanted to show an image first (would load fast, give user something to see while waiting on my WebGL stuff). Do you have some lying around to show how to have an image over the WebGL player then disappear on WebGL load(ed)?
This way I can speed giving them something to look at (like directions) while loading my application for them.