korinVR / WebGLBuildAndDeploy

Unity WebGL Build and Deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity WebGL Build and Deploy

This is a Unity package to simplify my WebGL build-and-deploy flow. Only Amazon S3 is supported for deployment.

Attention: This utility has many dependencies and will not be useful for everyone. Modify it, or use it just as a reference!

menu

Requirements

  • Python 3
  • AWS CLI
  • Browsersync (for "Start Local HTTPS Server")

Installation

In macOS, register the AWS CLI installation path on "Settings > WebGL Build and Deploy" because Unity can't find the path.

Usage

In the project window, run "Create -> WebGL Build and Deploy -> Deploy Settings," and set your S3 region and URI. Enable "Add Timestamp" if you want to append a timestamp to the destination folder.

Now you can build and deploy with the "WebGL" menu. When a build is finished, the .wasm and .data size will be reported. It will help build size optimization.

Please see the WebGLBuildAndDeploy project as an example.

About

Unity WebGL Build and Deploy

License:MIT License


Languages

Language:C# 91.7%Language:Python 8.3%