Unity WebGL template that scales to the entire browser/container window. Just 50 lines, has loading progress bar.
- Copy WebGLTemplates folder into the Assets folder.
- Go to Edit -> Project Settings -> Player -> WebGL -> Resolution and Presentation -> WebGL Template.
- Select the template. If you still can't see a new template, make sure you've copied the folder correctly.
- Enter desired render scale ranging from 1.0 to 2.0 in the template settings. By default it's 1.6 for mobile and 2.0 for desktop.