LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

UIOrientation

enumeration

Description

Default mobile device orientation.

Properties

PortraitPortrait.
PortraitUpsideDownPortrait upside down.
LandscapeRightLandscape: clockwise from Portrait.
LandscapeLeftLandscape : counter-clockwise from Portrait.
AutoRotationAuto Rotation Enabled.