Lets get started with UWB. We first need to setup your Unity project for UWB.
Newer Unity versions should work, but are untested!
UWB packages are hosted on our UPM registry. As such, the Voltstro UPM registry needs to be added to your project.
To setup the registry with your project, see here. The Voltstro UPM page also lists some other info that you may be interested in.
HOWEVER, an additional scope needs to be added. You need to make sure
com.cysharp.unitask is added (more details are provided in the UniTask part). Once you are done configuring your projects registries, your configuration should look like:
If you are using UnityNuGet, and you choose not to use Voltstro UPM as a UnityNuGet mirror, then don't add the
org.nuget scope to the Voltstro UPM registry entry.
If you are not already using UniTask, you can skip this part.
The reason why we need to add the additional
com.cysharp.unitask scope to VoltstroUPM is because UWB depends on UniTask. VoltstroUPM does provide a mirror copy (from OpenUPM) of UniTask, however you may already have UniTask installed via OpenUPM, or via Git. If you do have it installed already, and you don't want to use Voltstro UPM's mirror of it, then DO NOT define the additional scope as apart of VoltstroUPM.
If you already have UniTask installed via Git, please make sure it is the latest version!
Once you have the Voltstro UPM registry setup, you can now install the packages via the UPM GUI.
UWB is split into multiple packages. The packages that you need will depend on your use case.
You will need the core "Unity Web Browser" package (
dev.voltstro.unitywebbrowser). An "engine" package (and it's "engine native" package) is also required. For more details on what engines are available and their packages, see the engines section.
For more information on the different packages, see the packages section.
Once you are ready, you can move onto the usage section.