diff --git a/Assets/WebGLTemplates/BetterTemplate/index.html b/Assets/WebGLTemplates/BetterTemplate/index.html index 3968825..9aa711f 100644 --- a/Assets/WebGLTemplates/BetterTemplate/index.html +++ b/Assets/WebGLTemplates/BetterTemplate/index.html @@ -3,20 +3,119 @@ - %UNITY_WEB_NAME% + WebGLFitWindow - +
+
+ +
+
+
diff --git a/README.md b/README.md index 0049c5d..6be4d26 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,18 @@ 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 minimal template +but in any case here is a template Example: https://greggman.github.io/better-unity-webgl-template/ +## Instructions + The short version is you just need the `Assets/WebGLTemplates/BetterTemplate` folder in 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. +