Hello, everyone!
I am facing the problem that the safe area on my device shows different results.
My device is Huawei P20 Pro. It has notches.
Screen resolution 2240 × 1080
Unity version 2019.4.19f1
So there are three cases:
- Correct behavior. Safe Area = (x: 81, y: 0, width: 2159, height: 1080)
- Sometimes, for some reason, the safe area is scaled. Safe Area = (x: 54, y: 0, width: 1439, height: 720)
- Sometimes, I get safea area without offset. Safe Area = (x: 0, y: 0, width: 2240, height: 1080). This is the worst case, positions of my ui elements become broking.
It seems to me that Unity does not detect Huawei P20 Pro safe area properly.
Has anyone reproduced a similar problem?
How to solve it?