Landscape Mode in Unity for android
While making game for mobile devices, sometimes you need to allow only Landscape or Portrait mode. And to do that :
- In Unity, go to Edit > Project Settings > Player > Resolution and Presentation
- Set Default Orientation to Auto Rotation.
- Check the mode you want your game to play and uncheck others. For example if you want Both Landscape Right and Landscape Left mode then, check Landscape Right and Landscape Left and uncheck Portrait and Portrait Upside Down mode.