- Home /
how do i freely change the aspect ratio of the player
I'm making a game where the aspect ratio of the camera changes and since I don't want to have any weird stretching I need to change the aspect ratio of the player to change (it's ok for things to get smaller or larger) because of how the aspect ratio changes I can't use presets so it must be smooth. Any ideas? (I plan to build as a WebGL if it matters)
Answer by thaswasupbreh · Jun 26, 2020 at 05:23 PM
For anyone wondering I was able to fix this by instead of changing the aspect ratio of the camera, which causes the stretching I changed the size and adding borders with black rectangles to make it appear as if the aspect ratio has changed.
Your answer
![](https://koobas.hobune.stream/wayback/20220613001813im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Scale picture to object 1 Answer
Mobile device screen sizes 4 Answers
Mobile Development screen resolution and aspect ration 1 Answer
Forced aspect ratio 0 Answers
Is there a way to get Image>Preserve Aspect to work with children? 1 Answer