GltfFormat

Overview

GltfFormat is the built-in format handler for glTF (.gltf/.glb) files in Aspose.3D for TypeScript. It inherits from FileFormat and exposes factory methods that create the detector, importer, and exporter for this format. When a Scene loads or saves a .gltf file, it delegates all I/O work to this class internally. The class also provides access to default GltfFormatLoadOptions and GltfFormatSaveOptions instances that control parsing and serialisation behaviour for every read and write operation.

Properties

NameTypeAccessDescription
extensionstringReadProperty holds the primary GLTF file extension string
extensionsstring[]ReadReturns an array of all supported GLTF file extensions
contentTypestringReadProperty contains the MIME type for GLTF files
fileFormatTypeanyReadProperty indicates the internal format identifier for GLTF
versionstringReadProperty stores the GLTF version string supported by this format
canExportbooleanReadProperty indicates whether GLTF export is supported
canImportbooleanReadProperty indicates whether GLTF import is supported
formatsany[]ReadProperty lists format descriptors associated with GLTF handling

Methods

SignatureDescription
canImport()booleanProperty indicates whether GLTF import is supported
canExport()booleanProperty indicates whether GLTF export is supported
extension()stringProperty holds the primary GLTF file extension string
extensions()string[]Returns an array of all supported GLTF file extensions
version()stringProperty stores the GLTF version string supported by this format
constructor()
getInstance()GltfFormat
createLoadOptions()GltfLoadOptionsCreates a GltfLoadOptions instance for importing GLTF files
createSaveOptions()GltfSaveOptionsCreates a GltfSaveOptions instance for exporting GLTF files

See Also