- Home /
Unity build resolution problem
I am making a 2d game. I have set my game screen resolution to a set size. I have an orthographic camera set up with a set size (this is the only camera active in the scene). When I play the game within the unity editor I play it in full screen and set the scaling to 1x and everything looks fine - The sprites line up with the edge of the screen and the game looks like it should. When I build and run the game the scene is zoomed out. My sprites that lined up with the edge of the screen sit in the middle and there is a bunch of empty world space around everything. Is there no way to construct the scene, play it and have that same thing shown when you build and run the game? I don't know why this is happening and any help would be appreciated.
Thanks in advance.
Answer by suIly · Mar 28, 2018 at 01:17 PM
Could you take a screenshot of your problem?
Yeah, sorry... The first one is in the unity editor (screenshot 6) (which is how I want it) and the second is when I build and run the game (screenshot 7).
Sadly that doesn't change anything, my standalone is set to 1920 x 1080, the same resolution that I have tried to run it in. Is there no way just to set the resolution of the build (one that isn't already on the list of build resolutions)?
I decided to resize my camera and assets and rearrange the scene, and it looks fine now. I still wonder what the easier way would have been, but thank you anyways.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Creating a primitive during scene preprocessing? 0 Answers
VR.WaitForGPU - Quality settings in Editor and Build 3 Answers
Problem with 2D sprites 0 Answers