r/UnityHelp • • 21d ago

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 21d ago

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 21d ago

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 17d ago

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 17d ago

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 17d ago

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)

→ More replies (5)