Open 5argon opened 5 years ago
Here's what I get on my Huawei (I'm not on the maximum resolution)
Note that at startup, the application was displayed as below. The app was displayed normally after going into landscape.
I see that it kind of working! Thanks!
The code runs Update
repeatedly and refresh the red border + all texts every frame, so surely having to do one orientation change first is not some kind of initialization timing issue. Maybe we need Unity to fix it.
Also horizontal cutout's Y coordinate is way out of the screen!
Hmmm I have one more submission with Essential Phone, it also reports overshooted cutout on the Y axis when landscape. Strange.
These are from my OnePlus 6t:
After coming back from landscape, my portrait breaks and displays the orange area on the right:
There is also this annoying issue that android's getSafeInsetBottom() doesn't consider the bottom rounded corners. Which ends up cropping the corners of the image.
The cutout's Y coordinate update and initialization until first orientation change has been fixed in Unity 2019.2.0a7
When 2019.2.0a7 is out I will rebuild the APK. (Currently a4) For now please do not submit any more images. Thank you.
I have rebuilt the APK using 2019.2.0a9, and put in in the release page instead of in the repo.
That's what I get on my Huawei Mate 20 Pro
I would like to add some image from the iOS simulator as well. The cutout fits perfectly. Also you see what's great about iPhone's safeArea
is that it already accounts for the curved screen corner. If you stay inside the safeArea
, you are also safe from corners.
The first startup seems to still have a wrong orientation if the simulator is currently landscape. This is built with 2019.2.0a13, is this expected to be fixed already from 2019.2.0a7 or is it a new bug @rjonaitis ?
Rotating back, I could get the correct landscape.
On iPad Pro there is no cutout, but there is a 40px padded safe area for the black line. *also you are not safe from that little rounded corner since there are no safe area on other sides.
I was fortunate to receive cutout information of the latest Galaxy S10+ with that corner hole from my friend. (Thanks @pj4dev !) Here they are if someone wants to make me a mockup overlay for it.
I also got a friend whose friend got a non-plus variant Galaxy S10, so here it is! On this version the camera at the hole reduced to a single, thus about a half smaller. Thank you MiNiKooNG's friend who I don't even know!
My same friend MiNiKooNG already got the new Note 10+, so here is the info. He said the center hole actually skewed to the bottom of the rectangle, but anyways the frame looks right.
I think this is a device with the smallest center notch so far. We are more likely want to do nothing as if the hole didn't exist in this case, unfortunately safe area cannot distinguish it.
Hey there. We have been fighting with notch for a bit, and found this thread and your plugin!
Attaching info about my galaxy s10. It's shows different resolution, than your friend has:
Also did simulated double notch to see what happens:
I want to conduct a research what would Unity returns for
Screen.safeArea
(new in 2019.1) andScreen.cutouts
(new in 2019.2). I have made an APK from Unity 2019.2 alpha that returns those information. Help appreciated!adb install -r
(r = replace).The experiment's data will be used to make a new UI component in the future which could avoid the actual notch rectangle, not just pad according to the safe area like
SafeAreaPadding
.