Created
December 26, 2019 11:14
-
-
Save Stals/ad0c2a4a62d3e7ea4acf4a53b0c0d0f7 to your computer and use it in GitHub Desktop.
Revisions
-
Stals created this gist
Dec 26, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <!DOCTYPE html> <html lang="en-us"> <head> <style> canvas { width: 100%; height: 100%; position: absolute; } </style> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>%UNITY_WEB_NAME%</title> <script src="%UNITY_WEBGL_LOADER_URL%"></script> <script> //turn off unity's annoying alert() dialog. UnityLoader.Error.handler = function(){} var gameInstance = UnityLoader.instantiate("gameContainer", "%UNITY_WEBGL_BUILD_URL%"); </script> </head> <body> <div id="gameContainer" style="width: 100%; height: 100%; position: absolute; margin: auto"></div> </body> </html>