https://github.com/ebukaracer/ezwebgl
Simple yet Sleek WebGL Template for Unity HTML Games.
https://github.com/ebukaracer/ezwebgl
gamedev unity unitypackage unityplugin unitywebgl webgl
Last synced: 4 months ago
JSON representation
Simple yet Sleek WebGL Template for Unity HTML Games.
- Host: GitHub
- URL: https://github.com/ebukaracer/ezwebgl
- Owner: ebukaracer
- Created: 2025-01-23T10:14:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-05T11:30:35.000Z (7 months ago)
- Last Synced: 2025-09-07T06:33:46.066Z (4 months ago)
- Topics: gamedev, unity, unitypackage, unityplugin, unitywebgl, webgl
- Language: C#
- Homepage: https://ebukaracer.github.io/EzWebGL/
- Size: 38.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EzWebGL
[](http://makeapullrequest.com) [](https://ebukaracer.github.io/ebukaracer/md/LICENSE.html)
Simple yet Sleek WebGL Template for Unity Web Games.

[View in DocFx](https://ebukaracer.github.io/EzWebGL)
## Installation
_Inside the Unity Editor using the Package Manager:_
- Click the **(+)** button in the Package Manager and select **"Add package from Git URL"** (requires Unity 2019.4 or later).
- Paste the Git URL of this package into the input box: https://github.com/ebukaracer/EzWebGL.git#upm
- Click **Add** to install the package.
## Setup
After installation, navigate to `Racer > EzWebGL > Import Template(Force)` to import or update the WebGL template.
## Usage Guide
#### Default settings:
To use this template with its default settings, select `EzWebGL` from the listed templates:

#### Custom settings:
- `Optimize for pixel art:` Handy if you're targeting pixel art style.
- Value: `true` or `false`
- `Hide footer:` Whether or not to hide the buttons below the container/frame.
- Value: `true` or `false`
- `Border colour:` Changes the border colour of the container/frame and footer(if not hidden).
- Value: `transparent`, hex-colour codes e.g. `#FF0000`, `#0000FF`, etc, hardcoded colours e.g. `red`, `blue`, etc.
## Notes
- To change the default background colour navigate to: `Player Settings > Splash Image > Background > Background Color`. Any colour you set there would be applied to this template, you can observe it during the initial load of your game:

- To change the default favicon, navigate to `EzWebGL/TemplateData` and replace the default `favicon.ico` with your own, bearing the same name and extension.
- In case you're hosting your Unity WebGL game on [itch.io](itch.io), Unity usually defaults to a resolution of `960 X 600`, this tends to clip off this template's contents caused by the size of the container which itch website uses to render WebGL games.
*Here's my hacky way of achieving a fitting dimension:*
- Inside Unity, set the default Width and Height to `860 X 500` as seen above.
- On the Itch website, while editing your game, set the Width and Height values to `960 X 600`:

- To remove this package completely(leaving no trace), navigate to: `Racer > EzWebGL > Remove package`
## Credits
- WebGL Templates on [Unity docs](https://docs.unity3d.com/Manual/webgl-templates.html)
- Inspired by [BetterMinimal](https://seansleblanc.itch.io/better-minimal-webgl-template)
## [Contributing](https://ebukaracer.github.io/ebukaracer/md/CONTRIBUTING.html)
Contributions are welcome! Please open an issue or submit a pull request.