GetEditorScreenOrientation
Declaration
public static ScreenOrientation GetEditorScreenOrientation()
Summary
Returns
The screen orientation. When this method is called in a platform other than the Unity Editor,
it defaults to return ScreenOrientation.Portrait.
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.