【Unity】モバイルで画面の向きを変更する方法
概要
Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.orientation を変更することでモバイルで画面の向きを変更できます
| 列挙型 | 向き |
|---|---|
| Portrait | ![]() |
| LandscapeLeft | ![]() |
| LandscapeRight | ![]() |
Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.orientation を変更することでモバイルで画面の向きを変更できます
| 列挙型 | 向き |
|---|---|
| Portrait | ![]() |
| LandscapeLeft | ![]() |
| LandscapeRight | ![]() |