Unity-Technologies / arfoundation-demos

AR Foundation demo projects
Other
496 stars 130 forks source link

UX Samples do not scale with the screen well - tested on Iphone 7 #33

Closed ROBYER1 closed 3 years ago

ROBYER1 commented 3 years ago

Try 800 x 480 in Game view or 1280 x 720 and the bottom anchored overlay is off screen, also the Top of screen content is then simply huge and overlapping the bottom anchored content.

Iphone 7 is 1334 x 750 Pixels.

I am shocked this was released without a simple test of the resolutions in the Game view you can choose by default when making an IOS or Android project in Unity with ARFoundation.

The first device I tested on was an Iphone 7 which experienced these issues unfortunately this solution does not scale well.

Setting the Canvas Scaler to scale with screen size just means that the bottom anchored popups are off the screen always but scaling with it.

Not impressed with the scaling, however the icons are very nice and the presentation is great when it is on the right size phone screen.

ROBYER1 commented 3 years ago

Also the top and bottom anchors do not play well with Landscape view switching, looks awful.

DanMillerDev commented 3 years ago

Thanks for the report, I'll look into adjusting some anchors and screen scaling for smaller devices.

DanMillerDev commented 3 years ago

I've made some changes to the ScreenspaceUI prefab specific to scaling and some small adjustments to positioning. I tested with the device simulator for iPhone 7. See attached Screenshot

DeviceSimScalingFix

Both the top anchor videos and the reasons should fit properly on all devices now.

I did some testing with landscape mode but was not able to come up with a solution that fit both the videos and reasons properly. The original layout and design was made for portrait mode applications so for now so I will update that in the documentation and say landscape mode is not fully supported on all devices.

ROBYER1 commented 3 years ago

Hi @DanMillerDev thanks for getting on this so quickly, will this be merged over to ARFoundation-samples Repo also please?