Skip to main content

Class: GLTFExporter2

Asset-Management.GLTFExporter2

Hierarchy​

Implements​

Constructors​

constructor​

• new GLTFExporter2()

Inherited from​

GLTFExporter.constructor

Methods​

register​

▸ register(callback): GLTFExporter2

Parameters​

NameType
callback(writer: GLTFWriter & GLTFWriter2) => GLTFExporterPlugin

Returns​

GLTFExporter2

Overrides​

GLTFExporter.register


parseAsync​

▸ parseAsync(obj, options): Promise<Blob>

Parameters​

NameType
objany
optionsGLTFExporter2Options

Returns​

Promise<Blob>

Implementation of​

IExportParser.parseAsync

Overrides​

GLTFExporter.parseAsync


parse​

▸ parse(input, onDone, onError, options?): any

Parameters​

NameType
inputObject3D<Object3DEventMap> | Object3D<Object3DEventMap>[]
onDone(gltf: ArrayBuffer | { [key: string]: any; }) => void
onError(error: ErrorEvent) => void
optionsGLTFExporter2Options

Returns​

any

Overrides​

GLTFExporter.parse