Skip to main content
Version: 1.0

Scene Setup

danger

This guide assumes pre-existing knowledge of AR Foundation and OpenXR. For a more detailed overview, please visit the official AR Foundation and OpenXR Unity documentations.

This is what a proposed sample scene hierarchy looks like in order to run the project with AR Foundation and XR Interaction Toolkit support:

Scene Setup

AR Foundation

To enable positional head tracking, the following objects are required in the scene:

  • AR Session
  • XR Origin
    • Camera Offset
      • Main Camera (Tag this as "MainCamera")

In order to create these game objects manually, right-click in the hierarchy panel and select XR > AR Session or XR > XR Origin.

danger

Disable the AR Camera Manager component in the Main Camera GameObject if it is not needed to retrieve RGB camera frames for instance, to avoid camera lifecycle related issues mentioned in the known issues section.

IMPORTANT

Disable the AR Camera Background component in the Main Camera GameObject, as Snapdragon Spaces does not support it. All instances of the component will be automatically disabled at the start of the camera lifecycle to avoid rendering issues mentioned in the known issues section.