{"id":13731819,"url":"https://github.com/greggman/better-unity-webgl-template","last_synced_at":"2025-04-04T19:09:50.778Z","repository":{"id":40625223,"uuid":"110707070","full_name":"greggman/better-unity-webgl-template","owner":"greggman","description":"A better default template for Unity WebGL","archived":false,"fork":false,"pushed_at":"2021-01-29T00:42:36.000Z","size":12978,"stargazers_count":776,"open_issues_count":19,"forks_count":136,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-28T18:11:25.118Z","etag":null,"topics":["unity-asset","unity-webgl","unity3d"],"latest_commit_sha":null,"homepage":"https://greggman.github.io/better-unity-webgl-template/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greggman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-14T15:19:19.000Z","updated_at":"2025-03-16T12:49:42.000Z","dependencies_parsed_at":"2022-07-16T05:30:40.939Z","dependency_job_id":null,"html_url":"https://github.com/greggman/better-unity-webgl-template","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greggman%2Fbetter-unity-webgl-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greggman%2Fbetter-unity-webgl-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greggman%2Fbetter-unity-webgl-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greggman%2Fbetter-unity-webgl-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greggman","download_url":"https://codeload.github.com/greggman/better-unity-webgl-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity-asset","unity-webgl","unity3d"],"created_at":"2024-08-03T02:01:39.145Z","updated_at":"2025-04-04T19:09:50.723Z","avatar_url":"https://github.com/greggman.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# A Better Unity WebGL template\n\nI have no idea why Unity choose to not make its WebGL exporter default\nto filling the window like pretty much all other WebGL apps on the net\nbut in any case here is a template\n\n![screenshot](https://user-images.githubusercontent.com/234804/42355593-d466f416-8108-11e8-8662-2c8b8ce13032.gif)\n\nExample: https://greggman.github.io/better-unity-webgl-template/\n\n## Instructions 2020\n\nDownload and add in [this unity package](https://github.com/greggman/better-unity-webgl-template/releases/latest)\ninto your project. Then pick `Edit-\u003eProject Settings-\u003ePlayer`, in the WebGL tab\nunder *Resolution and Presentation* pick \"Better2020\".\n\n\u003cimg src=\"https://user-images.githubusercontent.com/234804/90982204-91b04d80-e5a0-11ea-8b89-68abd9bd77d9.png\" width=\"358\"\u003e\n\nChange `Assets/WebGLTemplates/Better2020/logo.png` to whatever you want.\n\nYou can also set \"Hide Full Screen Button\" to `1` or `true` if you don't want the fullscreen button to appear\nin the bottom right.\n\nSee [Unity docs](https://docs.unity3d.com/Manual/webgl-templates.html) on how to customize WebGL Templates.\n\n## Instructions 2019\n\nDownload and add in [this unity package](https://github.com/greggman/better-unity-webgl-template/releases/tag/v0.0.3)\ninto your project. Then pick `Edit-\u003eProject Settings-\u003ePlayer`, in the WebGL tab\nunder *Resolution and Presentation* pick \"BetterTemplate\".\n\n\u003cimg src=\"https://i.stack.imgur.com/r5Jns.png\" width=\"358\"\u003e\n\nChange `Assets/WebGLTemplates/BetterTemplate/logo.png` to whatever you want.\n\nSee [Unity docs](https://docs.unity3d.com/Manual/webgl-templates.html) on how to customize WebGL Templates.\n\n## Changelist\n\n*   0.1.0\n\n    *   Add Unity 2020\n\n*   0.0.3\n\n    *   Try to make mobile dialog appear above logo.\n\n        It's a little sad that Unity hard coded this rather than make it\n        some kind of event and/or make the template itself handle this.\n        The issue is there's no easy way to know if the inserted elements\n        are the mobile warning or something else.\n\n        I suppose could check if the game has actually loaded. If no it's\n        the mobile warning. If yes then disable the CSS. Oh well, burn that\n        bridge when we get there.\n\n    *   Fix logo size css\n\n    *   Add viewport tag\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreggman%2Fbetter-unity-webgl-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreggman%2Fbetter-unity-webgl-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreggman%2Fbetter-unity-webgl-template/lists"}