Contents

Spatial Preview

Preview spatial content from a macOS app on a connected visionOS device.

Overview

Use Spatial Preview to work with spatial content from a macOS app to a connected visionOS device in real time. The framework centers on two abstractions: SpatialPreviewEndpoint, which identifies the target visionOS device, and SpatialPreviewSession, which manages the active preview connection and the flow of content. The USDPreviewSession and DocumentPreviewSession objects adopt SpatialPreviewSession and support visionOS previews of Universal Scene Description (USD) content and general file content, respectively. USDKit is recommended for Spatial Preview because it works without any additional setup. If you want to use your own OpenUSD library, see the documentation below on how to bridge OpenUSD to USDKit.

Topics

Essentials

Nearby devices

Preview sessions

Session state and errors