Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ScreenOrientation

Describes screen orientation.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum ScreenOrientation

Remarks

Currently this is only relevant on mobile devices.
Additional Resources: Screen.orientation.

Fields

Value

Description

AutoRotationAutorotates the screen as necessary toward any of the enabled orientations.
LandscapeLeftLandscape orientation, counter-clockwise from the portrait orientation.
LandscapeRightLandscape orientation, clockwise from the portrait orientation.
PortraitPortrait orientation.
PortraitUpsideDownPortrait orientation, upside down.