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

fixed safe area wrong on pixel 4 XL #51

Closed XiaochenFTX closed 4 years ago

XiaochenFTX commented 4 years ago

I get a wrong safe area on pixel 4 XL.

The reason is the safe area values are NAN when app start. And then the recttransform will be set some wrong value.

I added some defense codes,let the size will not be too much wrong.

It is work on my pixel 4 XL.