XRDisplayContext
Container for data relevant to rendering in relation to the XR camera's display
Declaration
public static class XRDisplayContextFields
| Name | Type | Summary |
|---|---|---|
| static OccludeeEyeDepth | float | Linear eye-depth from the camera to the occludee |
Methods
| Name | Type | Summary |
|---|---|---|
| static GetScreenOrientation | ScreenOrientation | 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. |