# GetScreenOrientation Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Utilities.XRDisplayContext.GetScreenOrientation/ GetScreenOrientation --- ## Declaration public static ScreenOrientation GetScreenOrientation() #### Summary 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. #### Returns The corrected screen orientation. When running XR in NSDK's Playback mode, the returned value will match the screen orientation recorded in the dataset's current frame. Else, will return the UnityEngine.Screen.orientation value. ---