- Home /
Build window doesn't match camera
When I preview/look at the game I'm building in the editor, it looks fine and reflects the bounds of the camera,
But when i output/build the .exe and run it, it clips out alot of it. I'm still learning Unity and I'm sure it's something noval but I can't seem to find the answer, so any help would be appreciated. Some screenshots given below to illustrate the issue. Thanks.
Answer by fherbst · Sep 01, 2013 at 09:07 PM
In the game window, you can change from "Free Aspect" to the different aspect ratios the game will probably run in. Also, if you're using some kind of 2D toolkit, you should look at its documentation on how it behaves if rescaled and how to properly use it with different resolutions.
That doesn't appear to solve my problem, when I build the .exe everything remains the same. How can I make the bounds of the camera reflect the final result in the built .exe?
It depends. Like I said, consult the documentation of the 2D toolkit (I assume you're using one). If you were using a "standard" Unity camera, matching aspect ratio would mean that you see exactly the same in editor as in the game. Thus, there must be some pixel scaling going on.
It seems you don't understand what this answer is trying to tell you. The GameView window in Unity can be rescaled to whatever aspect ratio you like. What you see in the GameView is not what you see in your build because your build uses the aspect ratio you set in the project settings which depends on the resolution you set.
You can set the GameView in a mode so it represents the actual aspec it would use in your build, so you have to change your game to work with the build resolution and not some arbitrary resolution you currently have in your GameView.
I think I understand a bit better with that clarification, thanks to you both.
That's good to hear! Don't forget to mark an answer as solved so others can find it better.