CRIWARE Unity Plugin Manual
Last Updated: 2025-05-08
Notes for WebGL
Outline
This chapter gives environment-specific information for CRIWARE for WebGL.
Because the WebGL target environment is more restrictive than iOS and Android,users need to be aware of certain limitations.
How it works
CRIWARE
The WebGL target CRIWARE Unity plugin is provided as a native Unity plugin, just like other models.
For more information about Unity's native plugins, please refer to the Unity documentation.
CRIWARE consists of .a files built with Emscripten and .jslib files for using browser functions.
The following diagram is an overview of CRIWARE for Unity (WebGL).
CRIWARE for Unity WebGL
Operating environment
This is based on Unity's supported browsers. For details, please refer to the Unity documentation.
Also, since ADX uses AudioWorklet for audio output, it only works in an https environment (or localhost).
Precautions when using WebGL plugins
Please note the following points before using the WebGL version of the CRIWARE plugin.
Supported Unity Editor version and WebGL plugin package
The CRIWARE Unity plugin for WebGL is currently built using Emscripten 3.1.8.
Unity 2022.3 or higher is required for use. Please contact us if you need a library built with a different Emscripten version.
For more information on differently configured plugins, see below.
The CRIWARE Unity plugin for WebGL supports the ADX/HCA codec. Please use the ADX data (.acb/.awb) that includes the ADX /HCA codec built for the PC target.
Please note that AAC data built using the WebGL target for legacy plugins is not compatible.
Asynchronous loading
The WebGL target requires that data be loaded asynchronously, so
Depending on the timing of data loading, it may not work the same as other targets.
In that case, you will need to modify some of the scripts for WebGL.