Unity: Supporting Portrait and Landscape Screen Orientations

<p>Quite often developers choose to &ldquo;ignore&rdquo; the fact that there are two screen orientations available on the market &mdash; 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&rsquo;m using Unity 2020.1.17. This article assumes that your game&nbsp;<strong>IS</strong>&nbsp;suitable for both orientations. Like in my case,&nbsp;<a href="https://play.google.com/store/apps/details?id=pro.pudding.zen" rel="noopener ugc nofollow" target="_blank">Zen Jigsaw</a>&nbsp;needed support for Tablets right from the start but I could never find time&nbsp;<em>(till last week)</em>&nbsp;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>