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.
Prerequisites
I’m using Unity 2020.1.17. This article assumes that your game IS suitable for both orientations. Like in my case, Zen Jigsaw needed support for Tablets right from the start but I could never find time (till last week) to implement it. It is also worth mentioning that the project was tested on Android only.
As always, project sources are available at GitHub, find the link at the end of the page.
There are three parts: Scene preparation, Coding and Edge cases.