greggman / better-unity-webgl-template

A better default template for Unity WebGL
https://greggman.github.io/better-unity-webgl-template/
Creative Commons Zero v1.0 Universal
753 stars 136 forks source link
unity-asset unity-webgl unity3d

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".

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".

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

See Unity docs on how to customize WebGL Templates.

Changelist