Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

ScreenOrientation.AutoRotation

マニュアルに切り替える

説明

使用可能な向きの中で、必要に応じて自動で向きを変更します

このオプションが Screen.orientation プロパティーに割り当てられるとき、画面イメージの底が下を向くようにスクリーンは自動回転します。Screen.autorotateToLandscapeLeft , Screen.autorotateToLandscapeRight , Screen.autorotateToPortrait , Screen::autorotateToPortraitUpsideDown プロパティーで使用する向きを設定します。たとえば、 Screen.autorotateToPortrait と Screen::autorotateToPortraitUpsideDown の両方が True で他が False の場合、AutoRotation で Landscape オプションのいずれかを選択していても、デバイスが下を向いても(まわしても)スクリーンの長辺は固定されます。

See Also: Screen.orientation.