USDZExporter - Verge3D 用户手册 - Soft8Soft
Description: 了解如何在使用 Verge3D 制作的交互式 3D 应用程序中使用 USDZExporter

# 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:
  - quickLookCompatible — enable maximum compatibility with Apple Quick Look. Default is `true`.
  - maxTextureSize — restricts the image maximum size (both width and height) to the given value. Default is `1024`.

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

## 源代码

关于如何获取此模块的源代码，请查看 本页。