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
| Name | Type | Access | Description |
|---|
extension | string | Read | Property holds the primary GLTF file extension string |
extensions | string[] | Read | Returns an array of all supported GLTF file extensions |
contentType | string | Read | Property contains the MIME type for GLTF files |
fileFormatType | any | Read | Property indicates the internal format identifier for GLTF |
version | string | Read | Property stores the GLTF version string supported by this format |
canExport | boolean | Read | Property indicates whether GLTF export is supported |
canImport | boolean | Read | Property indicates whether GLTF import is supported |
formats | any[] | Read | Property lists format descriptors associated with GLTF handling |
Methods
| Signature | Description |
|---|
canImport() → boolean | Property indicates whether GLTF import is supported |
canExport() → boolean | Property indicates whether GLTF export is supported |
extension() → string | Property holds the primary GLTF file extension string |
extensions() → string[] | Returns an array of all supported GLTF file extensions |
version() → string | Property stores the GLTF version string supported by this format |
constructor() | |
getInstance() → GltfFormat | |
createLoadOptions() → GltfLoadOptions | Creates a GltfLoadOptions instance for importing GLTF files |
createSaveOptions() → GltfSaveOptions | Creates a GltfSaveOptions instance for exporting GLTF files |
See Also