Interface INeedleGLTFExtensionPlugin

Interface for registering custom glTF extensions to the Needle Engine GLTFLoaders. Register your plugin via addCustomExtensionPlugin

interface INeedleGLTFExtensionPlugin {
    name: string;
    onExport?: OnExportCallback;
    onImport?: OnImportCallback;
    onLoaded?: ((url, gltf, context) => void);
}

Properties

name: string

The Name of your plugin

onExport?: OnExportCallback

Called before starting to export a glTF file. This callback can be used to add custom extensions to the GLTFExporter

onImport?: OnImportCallback

Called before starting to load a glTF file. This callback can be used to add custom extensions to the GLTFLoader

onLoaded?: ((url, gltf, context) => void)

Called after the glTF has been loaded

Type declaration

    • (url, gltf, context): void
    • Parameters

      • url: string
      • gltf: GLTF
      • context: Context

      Returns void

Generated using TypeDoc