Import visionOS samples
Prerequisites
Before you import the visionOS samples, you must first:
- Install the visionOS platform module with the Unity Hub.
- Create a project in a supported version of the Unity Editor (Unity 2022.3 with patch version 18f+ recommended).
- Install the PolySpatial and visionOS packages.
Refer to Install PolySpatial and visionOS support for instructions.
Import the mixed reality samples
To import the samples for the Mixed Reality - Volume or Immersive Space App Mode into your project:
In the Unity Editor, open the Package Manager window (menu: Window > Package Manager).
Select the PolySpatial package (com.unity.polyspatial) from the list of packages in your project.
Select the Samples tab to show the samples available for the package.
Click the Import button for the Unity PolySpatial Samples item.
Set the Default Volume Camera Window Configuration (menu: Edit > Project Settings > PolySpatial) to use the configuration in
Assets/Samples/PolySpatial/Resources/Bounded_VolumeCameraConfiguration.asset
.
Unity imports the PolySpatial samples into your project. You can find these samples in the Assets > Samples > PolySpatial folder.
Import the virtual reality samples
To import the samples for the Virtual Reality - Fully Immersive Space App Mode into your project:
In the Unity Editor, open the Package Manager window (menu: Window > Package Manager).
Select the Apple visionOS XR Plugin package (com.unity.xr.visionos) from the list of packages in your project.
Select the Samples tab to show the samples available for the package.
Click the Import button for either the VR Sample - Built-in or the VR Sample - URP item, depending on which rendering pipeline the project uses.
Unity imports the VR sample into your project. You can find the sample in the Assets > Samples > Apple visionOS XR Plugin folder.