Interface IExportOptions
animationSampleRate?: number;
exportUnusedUVs?: boolean;
exportWithoutWaitingForScene?: boolean;
includeCoordinateSystemConversionNodes?: boolean;
khrInteractivity?: IKHRInteractivityExportProvider;
meshCompressionMethod?: MeshCompressionMethod;
removeNoopRootNodes?: boolean;
metadataSelector?(metadata: any): any;
shouldExportAnimation?(animation: Animation): boolean;
shouldExportNode?(node: Node): boolean;
}
Properties
Optionalanimation Sample Rate
The sample rate to bake animation curves. Defaults to 1 / 60.
Optionalexport Unused U Vs
Indicates if unused vertex uv attributes should be included in export. Defaults to false.
Optionalexport Without Waiting For Scene
Begin serialization without waiting for the scene to be ready. Defaults to false.
Optionalinclude Coordinate System Conversion Nodes
Indicates if coordinate system swapping root nodes should be included in export. Defaults to false.
Optionalkhr Interactivity
Canonical KHR_interactivity export provider. The provider is evaluated only after scene nodes and animations have their final glTF indices.
Optionalmesh Compression Method
Indicates what compression method to apply to mesh data.
Optionalremove Noop Root Nodes
Remove no-op root nodes when possible. Defaults to true. No-op roots are preserved when khrInteractivity is provided because the graph may reference them.
Methods
Optionalmetadata Selector
-
Function to extract the part of the scene or node's
metadatathat will populate the corresponding glTF object'sextrasfield. If not defined,node.metadata.gltf.extraswill be used.Parameters
- metadata: any
source metadata to read from
Returns any
the data to store into the glTF extras field
- metadata: any
Optionalshould Export Animation
-
Function which indicates whether an animation on the scene should be exported or not
Parameters
- animation: Animation
source animation
Returns boolean
boolean, which indicates whether the animation should be exported (true) or not (false)
- animation: Animation
Optionalshould Export Node
-
Function which indicates whether a babylon node should be exported or not
Parameters
- node: Node
source Babylon node. It is used to check whether it should be exported to glTF or not
Returns boolean
boolean, which indicates whether the node should be exported (true) or not (false)
- node: Node
Holds a collection of exporter options and parameters