Building and testing my Unity game

Matthew Bartosh
2 min readAug 19, 2022

My goal is to build my Unity game as a standalone product.

Luckily, Unity makes this incredibly easy! Just by going to build settings in the file menu, you have plenty of options to choose from.

Even more if you downloaded support for them. For now though, I just want to build a PC version, as that’s what I’m currently running. But I’m also going to check Player Settings to make sure the game doesn’t default to Fullscreen.

Making sure I have Windowed selected here, as I don’t have Quit assigned to Escape yet, though that’s coming. I also want to change the default screen width and height to a 16:9 ratio, as that’s what my game’s resolution is set to.

Now I just press ‘Build’ and wait a bit! And ta-da! It’s present on my PC, an executable that can be opened and run ‘out of the box’.

Next, I’m going to push a Web GL version so I can host it somewhere like Itch.io or my own site. I’ll start this by selecting WebGL under Platform, then clicking ‘Switch Platform’.

The biggest thing is that WebGL doesn’t like Linear Color Space, so I’ll have to change it to Gamma by going to the player options.

Next, I can go back and Build it just like I did with Windows, though it might take quite a bit longer (it did for me at least!)

All ready to upload! Thanks for joining me!

--

--