Submission thread : notch information as returned by Unity's API research
See original GitHub issueI want to conduct a research what would Unity returns for Screen.safeArea
(new in 2019.1) and Screen.cutouts
(new in 2019.2). I have made an APK from Unity 2019.2 alpha that returns those information. Help appreciated!
- Download the APK in the release page.
- Then install on your Android with file manager or
adb install -r
(r = replace). - After it runs, rotate the device to both portrait and landscape and take 2 screenshots to remember information of landscape and portrait safe area & others as reported by Unity.
- Paste those screenshots here! Thank you!
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
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
iPhone X notch in screen
I just watched the Apple keynote that launched the iPhone X. It appeared that app content flows around the notch (and video has...
Read more >Unity to ios Notch And Safe Are Problems
safeArea returns actual safeArea only once Unity view is initialized. I tried calling from Awake() of a -90 priority script first, and it...
Read more >Unity - Scripting API: Resources.Load
Loads the asset of the requested type stored at path in a Resources folder. This method returns the asset at path if it...
Read more >Unity on ios. ERROR: 0:78: Use of undeclared identifier 'xlv_TEX
See the Unity XCode project manual page for further information. Hi all, I would like to restart the engine Unity on the iphone....
Read more >Using .NET 4.x in Unity
Understand how to use .NET 4.x in Unity. Enable the .NET 4.x scripting runtime. Take advantage of .NET compatibility.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The cutout’s Y coordinate update and initialization until first orientation change has been fixed in Unity 2019.2.0a7
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.