About WebGL Publisher
Use the WebGL Publisher to build, publish and share your WebGL project on Unity Play. For example, you can use WebGL Publisher to create, inspect and manage WebGL builds of your project.
Package contents
The following table describes the package folder structure:
Location | Description |
---|---|
Editor | Contains the core scripts of the WebGL Publisher. |
Editor/Resources | Contains all the images used in the UI. |
Plugins/System.IO.Compression.FileSystem | Contains a compression library needed to upload builds. |
Tests | Contains unit tests that ensure that quality standards are met for the package. |
UI | Contains all the UXML and USS files needed for the package UI. |
Installation
To install this package, follow the instructions in the Package Manager documentation.
Requirements
This version of WebGL Publisher is compatible with the following versions of the Unity Editor:
- 2019.3 and later
Known Limitations
The zipped build cannot exceed 500 MB.
Helpful links
If you are new to WebGL Publisher, or have a question after reading the documentation, you can:
- Join our support forum.
Using WebGL Publisher
To use the WebGL Publisher, you need to install it first. This will create a new menu item called "Publish" in the top bar of the editor.
Click on Publish > WebGL Project to open the WebGL Publisher, and follow the on-screen instructions it will display in order to Build and Publish your game.
Please note that if you are not logged in with your Unity Account, you will be instructed to do so.
If you have not built the project yet, you will be instructed to do so. The Build Settings window will also popup if you have not selected any scene to build.
You can now upload your project to Unity Play. If the upload succeeds, you will be directed to a page where you can edit the name and description of your project before finally publishing it. Finally, you can then share the link of your published project so everybody can play the build.
By default, the WebGL Publisher will automatically Publish your build once it is ready. If you want to disable this behaviour, you can do it in Edit > Preferences > WebGL Publisher