Static
importImport GLTF or VRM from pre-loaded ArrayBuffers. Useful when you have already loaded the file data and want to avoid additional network requests.
A map of file names to ArrayBuffers. File names should include extensions and match URIs used in the glTF
Optional
options: GltfLoadOptionOptional loading configuration. If using the files option, keys must match the URIs of the ArrayBuffer values
Optional
callback: RnPromiseCallbackOptional callback function for progress tracking
A Promise that resolves to an Expression containing: - renderPasses[0]: model entities - renderPasses[1]: model outlines (if applicable)
Static
importImport GLTF or VRM file from a URL. Automatically detects the file format and uses the appropriate importer.
The URL of the glTF/VRM file to import
Optional
options: GltfLoadOptionOptional loading configuration. The files property is ignored for URL imports
Optional
callback: RnPromiseCallbackOptional callback function for progress tracking
A Promise that resolves to an Expression containing: - renderPasses[0]: model entities - renderPasses[1]: model outlines (if applicable)
Importer class which can import GLTF and VRM files. Supports multiple formats including glTF 1.0/2.0, GLB, VRM 0.x/1.0, and Draco compressed files.