Variable NEEDLE_ENGINE_MODULESConst

NEEDLE_ENGINE_MODULES: {
    MaterialX: {
        MAYBEMODULE: any;
        MODULE: any;
        load(): Promise<any>;
        ready(): Promise<any>;
    };
    PEERJS: {
        MAYBEMODULE: null
        | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    };
    POSTPROCESSING: {
        MAYBEMODULE: null
        | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    };
    POSTPROCESSING_AO: {
        MAYBEMODULE: any;
        MODULE: any;
        load(): Promise<any>;
        ready(): Promise<any>;
    };
    RAPIER_PHYSICS: {
        MAYBEMODULE: null
        | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    };
} = ...

External dependencies that are loaded on demand either by the engine automatically when needed or they can be loaded manually by calling the load function.

Use the ready function to wait for the module to be loaded if you do not wand to trigger a load.

If a module is already loaded it's also available in the MODULE variable.

Type declaration

  • MaterialX: { MAYBEMODULE: any; MODULE: any; load(): Promise<any>; ready(): Promise<any> }
    • MAYBEMODULE: any
    • MODULE: any
    • load:function
    • ready:function
      • Wait for the module to be loaded (doesn't trigger a load)

        Returns Promise<any>

  • PEERJS: {
        MAYBEMODULE: null | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    }
    • MAYBEMODULE: null | __module
    • MODULE: __module
    • load:function
    • ready:function
      • Wait for the module to be loaded (doesn't trigger a load)

        Returns Promise<__module>

  • POSTPROCESSING: {
        MAYBEMODULE: null | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    }
    • MAYBEMODULE: null | __module
    • MODULE: __module
    • load:function
    • ready:function
      • Wait for the module to be loaded (doesn't trigger a load)

        Returns Promise<__module>

  • POSTPROCESSING_AO: { MAYBEMODULE: any; MODULE: any; load(): Promise<any>; ready(): Promise<any> }
    • MAYBEMODULE: any
    • MODULE: any
    • load:function
    • ready:function
      • Wait for the module to be loaded (doesn't trigger a load)

        Returns Promise<any>

  • RAPIER_PHYSICS: {
        MAYBEMODULE: null | __module;
        MODULE: __module;
        load(): Promise<__module>;
        ready(): Promise<__module>;
    }
    • MAYBEMODULE: null | __module
    • MODULE: __module
    • load:function
    • ready:function
      • Wait for the module to be loaded (doesn't trigger a load)

        Returns Promise<__module>