UI Mobile Scaling
I have a 2D UI based game and have built the foundations on the resolution of an iPhone XS in Portrait however, when I change to any other portrait resolution or aspect ratio, It doesn't scale properly at all. I have "Scale with screen size" turned on in my canvas and I'm very confused as to what to do. I tried playing around with anchors but nothing helped so I reset them all back to the canvas centre.
If anybody could help me out I would be very happy.
How it should look like (iPhone X/XS Portrait)
How it comes out in other dimensions
Answer by BananaBananaGamesStudio · Feb 08 at 06:46 AM
set the match slider from zero to 100. So then it will keep the Height ok and trim the Width when needed.
Your answer
![](https://koobas.hobune.stream/wayback/20220613052735im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Mobile GUI Scaler 1 Answer
Gradually editing the scale of an object 1 Answer
2d Pathfinding in Unity 5.6, how it works? 0 Answers
How to get a buttons color 1 Answer