StaticgetGet a wasm module's configuration.
Name of the module.
The previously set configuration.
StaticgetGet 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.
StaticsetSet a wasm module's configuration.
Name of the module.
Optionalconfig: {The configuration object.
OptionalerrorHandler?: ModuleErrorCallbackFunction to be called if the module fails to download.
OptionalfallbackUrl?: stringURL of the fallback script to use when wasm modules aren't supported.
OptionalglueUrl?: stringURL of glue script.
OptionalnumWorkers?: numberFor modules running on worker threads, the number of threads to use. Default value is based on module implementation.
OptionalwasmUrl?: 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