Skip to content

seleb/Better-Minimal-WebGL-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Better-Minimal-WebGL-Template

Minimal WebGL build template.

Features

  • Scales canvas to fit the window horizontally + vertically while maintaining aspect ratio (can be disabled)
  • Centers canvas in window
  • Customizable background

To use

  1. Download and unzip
  2. Copy the WebGLTemplates folder into your project's Assets folder
  3. File -> Build Settings... -> WebGL -> Player Settings... -> Select the BetterMinimal template
  4. (Optional) Customize colour in the Background field; enter false in the Scale to fit field to disable scaling

Ideal for embedding on sites like itch.io which provide an external full-screen button.