- Home /
2d game converting into .exe problem(unity beginner)
I am making my first game in unity 2d and I wanted to check how to make an exe file using unity. Then I noticed when i ran the executable it was zoomed in a little.I tried using black bars but then i rembered playing a game jam game which was made in unity called unfinished game which totally fitted the size of my screen without a single black bar.Any help would be greatly appreciated.(this is my first question on unity answers so you can ask any detail you want)
Answer by Llama_w_2Ls · Feb 03, 2021 at 09:19 AM
When you build your game for windows, linux or mac, it is converted into an executable file. The resolution of your game is maximised to fit your screen size. You can see how your game will look like when stretched to fit your resolution in the game view.
In the game view, press the button at the top that says free aspect, and choose the aspect ratio of your monitor. If it isn't there, you can add a custom aspect ration/resolution by looking for a button at the bottom that says add custom resolution I think. When you switch to different platforms, like android, new resolutions will pop up like 1920 x 1080 etc.
If you find that your game is too zoomed in, you can change the size property of your camera, to zoom it out a little bit. It's in the camera component. Hope that helps. @karan_kashyap
Thank you for the answer!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your answer
![](https://koobas.hobune.stream/wayback/20220613024457im_/https://answers.unity.com/themes/thub/images/avi.jpg)