Sign inSign up

aallbrig/unity-webgl-player

By aallbrig

•Updated about 6 years ago

A unity webGL player built on top of webpack

Image
0

715

aallbrig/unity-webgl-player repository overview

⁠Unity WebGL Player

This repo contains a dockerized way of running Unity WebGL content.

⁠Usage

Example Run

docker run \
  -e WEBGL_LOADER_URL="Build/unity-webgl-player.loader.js" \
  -e WEBGL_DATA_URL="Build/unity-webgl-player.data" \
  -e WEBGL_FRAMEWORK_URL="Build/unity-webgl-player.framework.js" \
  -e WEBGL_CODE_URL="Build/unity-webgl-player.wasm" \
  -e WEBGL_STREAMING_ASSETS_URL="StreamingAssets" \
  -e COMPANY_NAME="Default Company LLC" \
  -e PRODUCT_NAME="Video Game Title" \
  -e PRODUCT_VERSION="0.0.1" \
  -e PORT="8080" \
  -p 8080:8080 \
  aallbrig/unity-webgl-player
⁠Local Development

Check out the hacks directory for scripts.

Docker related scripts:

# Unity webgl player binds to port 8080
./hacks/up.sh
# Unity webgl docker artifacts are destroyed
./hacks/down.sh
# Dockerfile is build, tagged, and published
./hacks/publish.sh

Tag summary

Content type

Image

Digest

Size

41.1 MB

Last updated

about 6 years ago

docker pull aallbrig/unity-webgl-player