r/UnityHelp • • Oct 06 '26

UNITY Game looks terrible after building

I made the mistake of never building my game til pretty much the very end (this is also my first experience with unity and game dev). I didn’t realize the build would be completely different than the editor view because everything is extremely zoomed out. Yes I have all UI elements to scale with screen size and canvas scalers and reference resolutions all the same and such. Is there a way to initialize the camera in the game to look how it does in editor? I only have the scale in editor set to 1.1x which I’m pretty sure is what it started at so I don’t know why the actual game is like 0.5x.
Thanks.

1 Upvotes

10 comments sorted by

1

u/Affectionate-Yam-886 Oct 06 '26

yes;
Top left corner of the game window view says FreeAspect
Change to 1920x1080 or whatever the desired resolution. This is so you can test your game in the resolution it will be played in.

In Unity settings under Player find the settings for default resolution and default graphics settings. Set the desired settings here as well. Make sure to set it low as you don’t know what people might be playing on. I recommend aiming for Steam Deck or Steam Machine as default.

Now check your main menu and pause menu Settings screen, and make sure only the desired settings that work for your game are available. Don’t offer 800x600 if your UI can’t scale that small. Test each resolution.

Now export your game.

All my games ship 720p medium settings; and have up to 8k ultra wide support.

Have fun.

1

u/Patient_River_229 Oct 06 '26

Hm, I already had the aspect set to 1920x1080. When I check player settings I only see the option to make “default is native resolution”. Is there some kind of zoom on the camera so I can just simulate the scale I had in the editor view or something?

1

u/Turbulent-Syrup3500 Oct 10 '26

Is the problem only with ui or the whole game as well? Usually built game should look pretty much as in the editor, so it is probably fixable

1

u/Patient_River_229 Oct 10 '26

Everything is zoomed out. It’s as if you took what I see in the editor and zoomed everything out together, so if I could just zoom back in in the build it would look normal

1

u/Turbulent-Syrup3500 Oct 10 '26

Interesting. Could you take two screenshots? One of the built game and one of the full editor window when you play (so your game view settings can be seen)

1

u/Patient_River_229 Oct 10 '26

I can only use videos for some reason but this shows what’s going on. Now that I look at it the UI elements are also in random not correct placements compared to the editor view

1

u/Turbulent-Syrup3500 Oct 11 '26

You want it to be just zoomed in or you want it to be cropped with black lines if the ratio is different?
Also could you please show camera component settings

1

u/Patient_River_229 Oct 11 '26

Here’s the camera component. The first one is in the first “level” where most of the game was built and the second clip is the camera in the first scene that actually loads. I’m not sure if they’re different or if I should’ve copied the camera from the scene I built the game around into the opening scene. And to my understanding I think I’d want to zoom back in in the build but now that I noticed the UI is out of place I’m not really sure what needs to happen

1

u/Turbulent-Syrup3500 Oct 12 '26

Hey🙌
So let's try this.
First of all forget about ui for now as it may have all sorts of it's own specific issues.
As said in another comment, set your target resolution in player settings. Where you see this <option to make “default is native resolution”>, remove the check mark and you'll see 2 fields to put in your resolution.

And also play with the camera, I see that on one camera you have pixel perfect component, and on the other one you don't. I think either both cameras should have it or neither should, unless there is some special reason for the opposite.

If some combination of settings fixes this issue for you, we could then start looking at the ui.

1

u/Patient_River_229 Oct 15 '26

Sorry I didn’t get back sooner. Strangely it seems this did the opposite of what I thought it would. (I made every camera pixel perfect and removed native resolution) Everything is still zoomed out BUT the UI is fixed…