Static
getGet a wasm module's configuration.
Name of the module.
The previously set configuration.
Static
getGet a wasm module instance. The instance will be created if necessary and returned in the second parameter to callback.
Name of the module.
The function called when the instance is available.
Static
setSet a wasm module's configuration.
Name of the module.
Optional
config: {The configuration object.
Optional
errorHandler?: ModuleErrorCallbackFunction to be called if the module fails to download.
Optional
fallbackUrl?: stringURL of the fallback script to use when wasm modules aren't supported.
Optional
glueUrl?: stringURL of glue script.
Optional
numWorkers?: numberFor modules running on worker threads, the number of threads to use. Default value is based on module implementation.
Optional
wasmUrl?: stringURL of the wasm script.
A pure static utility class which supports immediate and lazy loading of WebAssembly modules. Note that you can load WebAssembly modules even before instantiating your AppBase instance.
This class is generally only needed if you are developing against the Engine directly. Editor projects automatically load WebAssembly modules included in the project's assets.
Do not use this class to load the Basis WebAssembly module. Instead, please refer to basisInitialize.
Example