gi-nx / getGltf
ts
function getGltf(options?: {
keepInstancedMeshes?: boolean;
}): Promise<string>;Export the current 3D scene as a GLTF model.
Parameters
| Parameter | Type | Description |
|---|---|---|
options.keepInstancedMeshes? | boolean | - |
Returns
Promise<string>
Promise resolving to GLTF data
Example
typescript
const gltf = await rpc.invoke("getGltf", [{ keepInstancedMeshes: true }]);
// Download or process gltf data