- Download the .zip file for this template: here
- Extract the content using a zip program
- Drag and drop or copy the extracted content to your project's assets' directory:
Assets/RacerMinimal
If imported successfully, you should see something similar as in the above image, by navigating to file
-> build setting
-> player setting
-> resolution and presentation
Preview of it running in localhost:
Optimize for pixel art:
Handy if you're targeting pixel art style; value:either true or false
Hide footer:
Whether or not to hide the buttons below the container; value:either true or false
Border colour:
Changes the border colour of the container and footer(if not hidden). You can specifytransparent
as a value if you don't need the borders displayed at all; value:hex-colours(#xyz, #abc, etc), hardcoded colours(red, blue, etc)
,transparent
In case you're hosting your unity WebGL game on itch.io, usually unity defaults 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.
You can follow my ways to achieve a fitting dimension:
- Inside unity, set the default Width and Height to
860 X 500
as seen above. - On itch website, while editing your game, set the Width and Height values to
960 X 600
:
- See Unity docs on how to customise WebGL Templates.
- Got inspired by Better-Minimal
Drop a ⭐ if found useful.