Home > Net >  UI size changes when switching to a different device
UI size changes when switching to a different device

Time:07-31

So I am quite new to Unity Development, and I have run into a problem. I have two UI's in my game (two buttons), however, when I change the device from an Iphone 12 (landscape) to a Iphone 11 (landscape), the UI's ratio goes all whacky and it changes size. Is there any way I can prevent this? I will link photos below

So this is what it looks like if the camera is in the Iphone 12 landscape 'mode' enter image description here

and this is what it looks like in Iphone 11 'mode'

enter image description here

The ratio and size of the UI goes all whacky. How do I fix this?

(a picture of my canvas inspector

enter image description here

CodePudding user response:

One thing that comes to mind is to change the enter image description here

For UI elements you can play around with the setting I circled in red.

Also you might want to check this thread.

  • Related