「Unity/端末の向き」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→端末の向き) |
|||
| 行6: | 行6: | ||
縦だけにすると、androidにおいて、インストール端末から、テレビやウェアラブル(時計)が除外される。 | 縦だけにすると、androidにおいて、インストール端末から、テレビやウェアラブル(時計)が除外される。 | ||
| + | |||
| + | ↓縦のみにした時の設定ファイル変更 | ||
| + | ProjectSettings/ProjectSettings.asset | ||
| + | allowedAutorotateToPortrait: 1 | ||
| + | - allowedAutorotateToPortraitUpsideDown: 1 | ||
| + | - allowedAutorotateToLandscapeRight: 1 | ||
| + | - allowedAutorotateToLandscapeLeft: 1 | ||
| + | + allowedAutorotateToPortraitUpsideDown: 0 | ||
| + | + allowedAutorotateToLandscapeRight: 0 | ||
| + | + allowedAutorotateToLandscapeLeft: 0 | ||
2019年6月4日 (火) 16:00時点における版
端末の向き
File/BuildSettingsからPlayerSettingsボタンを押し "Resolution and Presentation"のorientationを変更する
- portrait:縦
- landscape:横
縦だけにすると、androidにおいて、インストール端末から、テレビやウェアラブル(時計)が除外される。
↓縦のみにした時の設定ファイル変更 ProjectSettings/ProjectSettings.asset
allowedAutorotateToPortrait: 1
- allowedAutorotateToPortraitUpsideDown: 1 - allowedAutorotateToLandscapeRight: 1 - allowedAutorotateToLandscapeLeft: 1 + allowedAutorotateToPortraitUpsideDown: 0 + allowedAutorotateToLandscapeRight: 0 + allowedAutorotateToLandscapeLeft: 0
