Skip to main content

Class: GLTFExporter2

Asset-Management.GLTFExporter2

Hierarchy

Implements

Constructors

constructor

new GLTFExporter2()

Inherited from

GLTFExporter.constructor

Defined in

webgi/node_modules/@types/three/examples/jsm/exporters/GLTFExporter.d.ts:51

Methods

register

register(callback): GLTFExporter2

Parameters

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

Returns

GLTFExporter2

Overrides

GLTFExporter.register

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:16


parseAsync

parseAsync(obj, options): Promise<Blob>

Parameters

NameType
objany
optionsAnyOptions

Returns

Promise<Blob>

Implementation of

IExportParser.parseAsync

Overrides

GLTFExporter.parseAsync

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:20


parse

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

Parameters

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

Returns

any

Overrides

GLTFExporter.parse

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:32