The NativeAndroidApp sample is missing a file which defines unitySurfaceView id resource, compared to the Android Gradle Project exported for a regular Unity Android app. That causes incorrect measurement of Screen.safeArea on Unity for NativeAndroidApp.
This PR fixes that issue.
Here are some screenshots by Pixel 5a.
before
after
As a supplement, an area rendered in gray color in this screenshot is image which have been stretched and rendered to full screen size in Unity, so rendering size has not been reduced.
The NativeAndroidApp sample is missing a file which defines unitySurfaceView id resource, compared to the Android Gradle Project exported for a regular Unity Android app. That causes incorrect measurement of Screen.safeArea on Unity for NativeAndroidApp.
This PR fixes that issue.
Here are some screenshots by Pixel 5a.
before
after
As a supplement, an area rendered in gray color in this screenshot is image which have been stretched and rendered to full screen size in Unity, so rendering size has not been reduced.