Skip to main content
API Reference NianticSpatial.NSDK.AR.Utilities

XRDisplayContext

Container for data relevant to rendering in relation to the XR camera's display

Declaration

public static class XRDisplayContext

Fields

NameTypeSummary
static OccludeeEyeDepthfloat
Linear eye-depth from the camera to the occludee

Methods

NameTypeSummary
static GetScreenOrientationScreenOrientation
For NSDK, it is important to know the screen orientation in order to know how to rotate the camera
input image received from the XRCameraSubsystem. The UnityEngine.Screen.orientation property only returns
ScreenOrientation.Portrait when called in Editor, presumably because there is no rotation offset
between the camera image and the displayed screen image in Editor. Thus, use this method to get the
screen orientation value expected by NSDK's APIs, regardless of the active platform.