Skip to content

Latest commit

 

History

History

pelican_unity_webgl

Pelican Unity WebGL

Compatibility

Unity >= 5.6 (Tested on 5.6)

Usage

Basic directive

.. unitywebgl GAME_ID

GAME_ID is the required parameter. This is name of the directory, that contains your webgl build. This directory should be place in path, specified in config.py file, or with :gameroot: parameter.

Optional parameters

.. unitywebgl GAME_ID
        :gameroot: /games/new/
        :template: /games/templates/newtemplate
        :width: 640
        :height: 480
Parameter default value  
gameroot /games path to directory with games
templatepath /games/utemplate path to template
width Player resolution
height

Note

Test pelican project can be found in pelican_demo.zip archive here

Configuration

You can change default root directory, template path and player resolution in the config.py file.

Modifying html output template

You can modify the template.txt file to change html output.

Template parameters explanation:

Parameter default value
0 game directory name
1 directory, where games placed
2 template directory
3 width
4 height

About

License: MIT

Unity WebGL RST Directive github page

Mr.Page (c) 2017