USDZExporter

An exporter for USDZ assets.

Code Example

const usdzExporter = new v3d.USDZExporter(); const dataURL = await new Promise(function(resolve, reject) { usdzExporter.parse(app.scene).then(function(value) { const dataUrl = URL.createObjectURL(new Blob([value], { type: 'application/octet-stream' })); resolve(dataUrl); }, function(reason) { console.error('USDZ export failed: ' + reason); reject(reason); }); });

Constructor

USDZExporter()

Creates a new USDZExporter.

Methods

.parse(scene : Object3D | Scene, options : Object)

scene
Scene or objects to export.
options
Export options:

Generates a .usdz output from the input (scene or objects).

Source

For more info on how to obtain the source code of this module see this page.