Get a minimal responsive template for your WebGL games and apps!
You can also set a fixed aspect ratio!
By default, unity WebGL templates require a fixed canvas size that, while good enough for some cases, tends to be too limiting in many situations. I created this repository because I needed a way to resize the canvas to fit the screen automatically and I couldn't find any other prepackaged solution.
- Import the
Packages/WebglResponsiveTemplate.unitypackage
- Select the Responsive template under WebGL player settings
- Build and run :)