Retrieves a previously loaded module from the internal registry.
The name of the module to retrieve
The loaded module if found, undefined otherwise
Dynamically loads a module by name and stores it in the internal module registry. Supports loading WebGL, WebGPU, Effekseer, PBR, and XR modules with code splitting.
The name of the module to load (case-insensitive). Supported modules: 'webgl', 'webgpu', 'effekseer', 'pbr', 'xr'
Optionaloptions: {Optional configuration object for module loading
OptionalnativeScript?: stringOptionalnativeScriptWebGL?: stringWebGL backend native script URI for Effekseer
OptionalnativeScriptWebGPU?: stringWebGPU backend native script URI for Effekseer
Optionalwasm?: stringWASM module URI, currently used only for Effekseer module
OptionalwasmWebGL?: stringWebGL backend WASM module URI for Effekseer
OptionalwasmWebGPU?: stringWebGPU backend WASM module URI for Effekseer
A promise that resolves to the loaded module
StaticgetGets the singleton instance of ModuleManager. Creates a new instance if one doesn't exist.
The singleton ModuleManager instance
A singleton module manager that handles dynamic loading and management of various modules such as WebGL, WebGPU, Effekseer, PBR, and XR modules.
This class provides a centralized way to load modules on-demand and retrieve them when needed, helping to optimize bundle size by enabling code splitting.