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

GetEditorScreenOrientation


Declaration

public static ScreenOrientation GetEditorScreenOrientation()

Summary

Calculates the screen orientation via the game view aspect ratio. Use this method instead of
UnityEngine.Screen.orientation in Editor, as the latter only returns Portrait in Editor.

Returns

The screen orientation. When this method is called in a platform other than the Unity Editor,
it defaults to return ScreenOrientation.Portrait.