5argon / NotchSolution

A set of components and tools to solve notched/cutout phones layout problems for Unity.
http://exceed7.com/notch-solution
MIT License
668 stars 91 forks source link

Fix safe area calculations for Unity Standalone builds #60

Closed jollyMZ closed 2 years ago

jollyMZ commented 3 years ago

Standalone builds aren't necessarily fullscreen so we really only want to use the size of the player.

robinnorth commented 2 years ago

Thanks @jollyMZ , I can confirm that this also works for me on Unity 2019.4 to fix the issue of incorrect safe area calculation on non-fullscreen standalone builds 🙏

5argon commented 2 years ago

Thank you for your PR! I had no time for years to maintain this, now I am getting back to it. This is a really good catch, plus I didn't test on standalone build at all...