Exporting for Web
To export your experience as a Web app, follow the procedure corresponding to your version of Unity.
Settings for Unity 6
From the Unity editor's menu bar, go to Zoe > Build Target Window.

Click on
Switch build target to Web. Wait a moment for the process to complete.Make sure that
Enable Desktop Camera Controlis checked in the inspector of your interactive camera(s) (Interaction Rig).
What was modified?
When switching the build target to Web, Zoe for Unity automatically modifies several project settings in the background. If you want to double check or are curious, here are the settings that are modified:
Open File > Build Profiles.
From the Build Profiles window, click on
Player Settings.

Select
Playerfrom the sidebar.From the Web tab (symbolized by a world globe), expand
Publishing Settings.Compression Formatis set to Gzip.Data Cachingis unchecked.

Select
XR Plug-in Managementfrom the sidebar, then the Web tab (symbolized by a world globe).Initialize XR on Startupis unchecked.

Settings for Unity 2023 and prior
Make sure that
Enable Desktop Camerais checked in the inspector of your interactive camera(s) (Interaction Rig).Go to File > Build Settings.
Select
WebGLin the sidebar.If you see an
Install with Unity Hubbutton, click on it. Unity will then install the necessary WebGL modules. You may need to close and reopen Unity after the process.With WebGL selected, click on
Switch Platformat the bottom of the Build Settings window.
Exporting for Web
In File > Build Profiles (or Build Settings), make sure all necessary scene(s) of your experience are selected in the Scene List.
Hit
Build.Name your build, select a folder for it to be exported to, then click
Save.
It will take a few minutes for your build to export. Once done, your exported files will automatically open in a new window.
Playing your Experience
Once you've exported a build for web, it's time to play it.
Select your build and compress it as a .zip file (Windows: right-click on folder, Compress to... > ZIP File / macOS: right-click on folder, Compress "[Build name]").
Go to play.unity.com.
Log into your Unity account, then click on the Upload icon on the right side of the menu bar.
Select your build's ZIP file or simply drag and drop it into the Upload section.
Fill in the Title and Description fields, then hit
Save.
Hit the
Playbutton to launch your experience!
Last updated