Skip to main content

Additional Scene Setup for Mixed Reality Devices

Passthrough

Passthrough refers to the possibility to bring the physical environment as an image to VR devices. To activate, inside UI > Floating Panel, there is an Extend Content panel with the checkbox to enable or disable Passthrough. The panel will only be active for the user if the device is Passthrough compatible. This check is done at Start() in the MainMenuSampleController.cs script with IsPassthroughSupported().

The checkbox on the UI panel calls the function OnPassthroughToggle() in the MainMenuSampleController, that will set the PassthroughToggle in the BaseRuntimeFeature, which will enable the user to see or hide the physical environment image. It can be also toggled with each primary button press on each controller ("X" and "A" buttons).

danger

The session camera must have its Background alpha set to 0 in order to use and visualize Passthrough correctly on a Unity scene. There will be an automatic warning shown in the logs if Passthrough has been enabled and the session camera has wrong background settings.

When holding down the menu button on the VRX for 2 seconds, the device recenters its position. The Snapdragon Spaces SDK provides a delegate called OnSpacesAppSpaceChange in the BaseRuntimeFeature to notify when the recenter happens.