UIOrientation Enumeration

Default mobile device orientation.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Values
Portrait

Portrait.

PortraitUpsideDown

Portrait upside down.

LandscapeRight

Landscape: clockwise from Portrait.

LandscapeLeft

Landscape : counter-clockwise from Portrait.

AutoRotation

Auto Rotation Enabled.