question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submission thread : notch information as returned by Unity's API research

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
rjonaitiscommented, Feb 25, 2019

The cutout’s Y coordinate update and initialization until first orientation change has been fixed in Unity 2019.2.0a7

2reactions
AAulicinocommented, Feb 21, 2019

These are from my OnePlus 6t:

vertical_correct

horizontal

After coming back from landscape, my portrait breaks and displays the orange area on the right:

vertical

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.

croppedborders

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found