Version: 2023.2
LanguageEnglish
  • C#

ScreenOrientation

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Mirrors the ScreenOrientation enum.

For more information about the attribute, see Android's documentation: ScreenOrientation attribute

Properties

NullAttribute is not set and will not appear in the element.
UnspecifiedMirrors android:screenOrientation="unspecified".
BehindMirrors android:screenOrientation="behind".
LandscapeMirrors android:screenOrientation="landscape".
PortraitMirrors android:screenOrientation="portrait".
ReverseLandscapeMirrors android:screenOrientation="reverseLandscape".
ReversePortraitMirrors android:screenOrientation="reversePortrait".
SensorLandscapeMirrors android:screenOrientation="sensorLandscape".
SensorPortraitMirrors android:screenOrientation="sensorPortrait".
UserLandscapeMirrors android:screenOrientation="userLandscape".
UserPortraitMirrors android:screenOrientation="userPortrait".
SensorMirrors android:screenOrientation="sensor".
FullSensorMirrors android:screenOrientation="fullSensor".
NoSensorMirrors android:screenOrientation="noSensor".
UserMirrors android:screenOrientation="user".
FullUserMirrors android:screenOrientation="fullUser".
LockedMirrors android:screenOrientation="locked".