WebGL build & deployment recommendations
This section gathers all the relevant information required to build and deploy a WebGL build using the Identity SDK.
Build recommendations
Before generating a WebGL build, make sure to have the right configuration in the Unity Editor Player Settings:
- Select Player Settings> Publishing Settings.
- Set Compression Format to Disabled.
- Select Player Settings> Other Settings.
- Under Optimization set Manage Stripping Level to Minimal.
- Select Build Settings...> Build and follow instructions to generate a WebGL build.
Deployment recommendations
Host limitations
Identity's authentication engine calls specific Unity Cloud endpoints.
By default and for security reasons, these endpoints reject any request sent from any host that doesn't belong to the *.unity.com
domain (including the localhost
environment).
Upload a WebGL build on the Digital Twin Dashboard
Upload a WebGL build on the Digital Twin Dashboard
To upload a WebGL build, follow these steps:
- Log into the Digital Twin Dashboard.
- Select Asset Manager > Organization Workspace.
- Create a new dataset using the + New button.
- Select folder in the drag and drop field.
- Select the folder containing your WebGL build.
- Select Create Digital Twin to upload the files.
Access and deploy a WebGL build with the Digital Twin Dashboard
Once the upload is completed, a summary of the new dataset details appears.
- In the summary, make sure the Public option is checked. If the option is not checked by default, check it to make the dataset public.
- Locate the
index.html
file. - Right-click the file and select Copy URL from the dropdown menu.
- Paste the URL in the address bar of your browser.