Home

Awesome

A Better Unity WebGL template

I have no idea why Unity choose to not make its WebGL exporter default to filling the window like pretty much all other WebGL apps on the net but in any case here is a template

screenshot

Example: https://greggman.github.io/better-unity-webgl-template/

Instructions 2020

Download and add in this unity package into your project. Then pick Edit->Project Settings->Player, in the WebGL tab under Resolution and Presentation pick "Better2020".

<img src="https://user-images.githubusercontent.com/234804/90982204-91b04d80-e5a0-11ea-8b89-68abd9bd77d9.png" width="358">

Change Assets/WebGLTemplates/Better2020/logo.png to whatever you want.

You can also set "Hide Full Screen Button" to 1 or true if you don't want the fullscreen button to appear in the bottom right.

See Unity docs on how to customize WebGL Templates.

Instructions 2019

Download and add in this unity package into your project. Then pick Edit->Project Settings->Player, in the WebGL tab under Resolution and Presentation pick "BetterTemplate".

<img src="https://i.stack.imgur.com/r5Jns.png" width="358">

Change Assets/WebGLTemplates/BetterTemplate/logo.png to whatever you want.

See Unity docs on how to customize WebGL Templates.

Changelist