Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miguel12345/UnityWebglResponsiveTemplate

A full-sized (with optional aspect ratio) responsive minimal webgl template for your Unity projects!
https://github.com/miguel12345/UnityWebglResponsiveTemplate

Last synced: about 2 months ago
JSON representation

A full-sized (with optional aspect ratio) responsive minimal webgl template for your Unity projects!

Awesome Lists containing this project

README

        

# WebGL responsive template

Get a minimal responsive template for your WebGL games and apps!

![](example_gif.gif)

You can also set a fixed aspect ratio!

![](aspect_ratio_settings.png)![](responsive_aspect_ratio.gif)

## Why?

By default, unity WebGL templates require a fixed canvas size that, while good enough for some cases, tends to be too limiting in many situations. I created this repository because I needed a way to resize the canvas to fit the screen automatically and I couldn't find any other prepackaged solution.

## Usage

1. Import the `Packages/WebglResponsiveTemplate.unitypackage`
2. Select the _Responsive_ template under WebGL player settings
3. Build and run :)