Unity SDK WebGL support
Understand best practices and limitations of using the Vivox Unity WebGL SDK.
Read time 1 minuteLast updated 2 days ago
The Vivox Unity WebGL SDK is available starting at version 16.5.0. This SDK is available at a Limited level of support. For more information on this support level, refer to the Supported platforms and versions page.
Known Vivox WebGL limitations
- Players can only join a single channel per instance.
- There's no support for display names.
- Only 2D (non-positional) channels are supported. No 3D (positional) voice channel support.
- There are no participant-updated events; this covers events for audio energy, , or mute states.
is_talking - There is limited audio device functionality due to web browser limitations.
- Unity Editor Audio Tap components aren't supported.
Build a Unity project for WebGL
Review the prerequisites for building a Unity project for WebGL in the Unity Editor documentation on building for WebGL. To build your application, set the build target to WebGL: File > Build Settings > WebGL > Build (or Build and Run).Best practices
- If your Vivox application is using a feature that’s not implemented in the WebGL SDK, a is thrown to ensure compiler compatibility while helping to identify limited functionality.
~NotImplementedException - For local testing purposes, turn off compression in the WebGL build: Player Settings > Publish Settings > Compression > Disabled.
- Cross-Origin Resource Sharing (CORS) messages are expected in the local browser. Connect by using HTTPS instead of HTTP.
- Firefox is the recommended browser for local testing.