Class: GLTFDracoExporter
Asset-Management.GLTFDracoExporter
Hierarchy
↳
GLTFDracoExporter
Implements
Properties
loader
• Optional
loader: DRACOLoader2
Constructors
constructor
• new GLTFDracoExporter(encoderOptions?
)
Parameters
Name | Type |
---|---|
encoderOptions? | EncoderOptions |
Overrides
Methods
preload
▸ preload(): GLTFDracoExporter
Returns
parseAsync
▸ parseAsync(obj
, __namedParameters
, throwOnError?
): Promise
<Blob
>
Parameters
Name | Type | Default value |
---|---|---|
obj | any | undefined |
__namedParameters | { compress : boolean ; dracoOptions? : EncoderOptions } & GLTFExporterOptions & { encrypt? : boolean ; encryptKey? : string | Uint8Array ; embedUrlImages? : boolean ; embedUrlImagePreviews? : boolean ; exportExt? : string ; preserveUUIDs? : boolean ; externalImagesInExtras? : boolean ; encodeUint16Rgbe? : boolean ; jsonSpaces? : number } | undefined |
throwOnError | boolean | false |
Returns
Promise
<Blob
>
Implementation of
Overrides
addExtension
▸ addExtension(extension
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
extension | typeof Extension |
Returns
createAndAddExtension
▸ createAndAddExtension(name
, textures?
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
name | string |
textures? | Record <string , string | number > |
Returns
register
▸ register(callback
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
callback | (writer : GLTFWriter & GLTFWriter2 ) => GLTFExporterPlugin |
Returns
Inherited from
parse
▸ parse(input
, onDone
, onError
, options?
): any
Parameters
Name | Type |
---|---|
input | Object3D <Object3DEventMap > | Object3D <Object3DEventMap >[] |
onDone | (gltf : ArrayBuffer | { [key: string] : any ; }) => void |
onError | (error : ErrorEvent ) => void |
options | GLTFExporter2Options |
Returns
any