Unity: Supporting Portrait and Landscape Screen Orientations
<p>Quite often developers choose to “ignore” the fact that there are two screen orientations available on the market — Portrait and Landscape, adding support for only one of them. Obviously, by doing that a significant share of devices is left out. In this tutorial I will show you how to add support for both screen modes, also revealing a few edge cases that you might not have thought of.</p>
<h1>Prerequisites</h1>
<p>I’m using Unity 2020.1.17. This article assumes that your game <strong>IS</strong> suitable for both orientations. Like in my case, <a href="https://play.google.com/store/apps/details?id=pro.pudding.zen" rel="noopener ugc nofollow" target="_blank">Zen Jigsaw</a> needed support for Tablets right from the start but I could never find time <em>(till last week)</em> to implement it. It is also worth mentioning that the project was tested on Android only.</p>
<p>As always, project sources are available at GitHub, find the link at the end of the page.</p>
<p>There are three parts: Scene preparation, Coding and Edge cases.</p>
<p><a href="https://levelup.gitconnected.com/unity-supporting-portrait-and-landscape-screen-orientations-3330fdb0eaec"><strong>Read More</strong></a></p>