Building for Apple Vision Pro with Unity PolySpatial
Create your first shared-space visionOS app in Unity using the PolySpatial package — from project setup to running on device.
Prerequisites
- Mac with macOS Ventura 13.5+ and Xcode 15.2+
- Unity 2022.3.18f1 or newer
- Apple Vision Pro (borrow from the lab — book via the equipment page)
- Apple Developer account (free tier works for device testing)
Step 1: Install PolySpatial
- Open your Unity project
- Window → Package Manager → + → Add package by name:
com.unity.polyspatial com.unity.polyspatial.visionos com.unity.polyspatial.xr - Also add
com.unity.xr.visionoswhen prompted
Step 2: Configure Build Settings
- File → Build Settings → switch to visionOS
- In Player Settings:
- Bundle ID:
edu.cmu.sxl.yourappname - Target SDK: Device SDK
- App Mode: Mixed Reality (Shared Space) or Full Space
- Bundle ID:
Step 3: Set Up the Scene
- Delete the default camera
- Add GameObject → XR → XR Origin (VR) — PolySpatial will convert this
- Add a Volume Camera component to define your app’s spatial bounds
- For Shared Space apps, keep volumes under 1m³
Step 4: Build and Run
- File → Build Settings → Build — this creates an Xcode project
- Open the
.xcodeprojin Xcode - Select your Vision Pro as the run destination and hit Run
The app will appear in the user’s space alongside other visionOS apps.