From 0dcf99c078a705b1799095b88718bd7eb63e3709 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 15 Nov 2017 01:54:45 +0900 Subject: [PATCH] add logo/spinner/progress --- .../WebGLTemplates/BetterTemplate/index.html | 111 +++++++++++++++++- README.md | 6 +- 2 files changed, 110 insertions(+), 7 deletions(-) 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. +