Skip to content

gi-nx


gi-nx / getGltf

ts
function getGltf(options?: {
  keepInstancedMeshes?: boolean;
}): Promise<string>;

Export the current 3D scene as a GLTF model.

Parameters

ParameterTypeDescription
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