---
title: "exportPackage(options:)"
framework: usdkit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdstage/exportpackage(options:)"
---

# exportPackage(options:)

Packages the stage into a USDZ archive and returns it as in-memory data.

## Declaration

```swift
func exportPackage(options: USDStage.ExportOptions = []) throws -> Data
```

## Discussion

Discussion The stage and its referenced assets are bundled into a USDZ archive in memory. Layer structure is preserved - this operation does not flatten.
