- Home /
Question by
FutureLights · Sep 23, 2019 at 08:46 PM ·
camera2d gamescalescreen.width
Scale game vertically only
I am making a 2d portrait game where the width of the screen makes a big difference. Ideally, I'd be able to lock width the main camera and the height would be changed based on device (the iPhone X, for example, would get a lot more content than an IPad beacuse it's taller). Is there a way to do this? Currently, my game scales both height and width and really messes somthings up.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612212528im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Stop main camera from zooming 2D 1 Answer
Show squares in the camera 0 Answers
Unity is displaying UI elements behind background image 2 Answers
Auto Scale camera depending on Screen Size - How?? 3 Answers