StaticimportImport 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
Optionaloptions: GltfLoadOptionOptional loading configuration. If using the files option, keys must match the URIs of the ArrayBuffer values
Optionalcallback: RnPromiseCallbackOptional callback function for progress tracking
A Promise that resolves to an Expression containing: - renderPasses[0]: model entities - renderPasses[1]: model outlines (if applicable)
StaticimportImport 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
Optionaloptions: GltfLoadOptionOptional loading configuration. The files property is ignored for URL imports
Optionalcallback: 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.