Skip to content

guneyozsan/UnityWebglResponsiveTemplate

 
 

Repository files navigation

WebGL responsive template

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

You can also set a fixed aspect ratio!

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 :)

About

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

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.7%
  • HTML 17.2%
  • CSS 8.6%
  • C# 6.5%