-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submission thread : notch information as returned by Unity's API research #2
Comments
I see that it kind of working! Thanks! The code runs Also horizontal cutout's Y coordinate is way out of the screen! |
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) |
I have rebuilt the APK using 2019.2.0a9, and put in in the release page instead of in the repo. |
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 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. |
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. |
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
.The text was updated successfully, but these errors were encountered: