Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/miguel12345/UnityWebglResponsiveTemplate
- Owner: miguel12345
- License: mit
- Created: 2017-09-03T21:25:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T00:01:58.000Z (about 6 years ago)
- Last Synced: 2024-08-03T19:09:52.640Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.6 MB
- Stars: 91
- Watchers: 9
- Forks: 26
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - UnityWebglResponsiveTemplate - A full-sized responsive minimal webgl template for your Unity projects (Script Utility)
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 :)