mixed-reality

MRTK

MRTK will handle specific camera settings automatically, based on the configuration in the camera system profile.

Namespace: Microsoft.MixedReality.Toolkit.CameraSystem
Type: MixedRealityCameraSystem

To check the camera’s opaqueness, the MixedRealityCamera system has an IsOpaque property.

CoreServices.CameraSystem.IsOpaque;

XR SDK

Namespace: UnityEngine.XR
Type: XRDisplaySubsystem

You can use script code to determine at runtime whether the headset is immersive or holographic by checking displayOpaque on the actively running XRDisplaySubsystem.

Legacy WSA

Namespace: UnityEngine.XR.WSA
Type: HolographicSettings

You can use script code to determine at runtime whether the headset is immersive or holographic by checking HolographicSettings.IsDisplayOpaque.