Build and Test Your Game

Whether you’re finished with your game or just your part, it’s important to verify that everything is working before you publish it. Fortunately for us, Unity has made it easy to build the game and test it out via a browser or a stand-alone application.

Once you’re complete with your current game or task, head over to the build settings by going to File -> Build Settings or Ctrl + Shift + B.

Once the Build Settings window pops up, you can add the current opened scene you want to be included in the build. You can achieve this by clicking on Add Open Scenes button on the right.

Also note the number on the right of the scene. This number serves as an index in case you want to access the scene in the game, like loading the next stage after the player finished beating the current stage.

This section is where you can select which platform you want to test, and later publish, your game on. For the time being, especially if you’re just testing the game, it’s better to use the PC, Mac & Linux Standalone or the WebGL platforms.

In addition, your Unity version might have more or less platforms listed due to installed dependencies when you were installing Unity.

At this point, you can click Build if you’re complete. However, Unity does give you more options to configure the game to your liking. By clicking on Player Settings in the lower left hand corner of the Build Settings window, you can access more settings.

The main setting we’ll be looking for is under the Player settings. Here, Unity has given us the option to configure what the game will look like once it’s done building the game. For instance, under the PC, Mac & Linux Standalone settings, you can determine if you want the game to be in Fullscreen Mode or Windowed. Furthermore, you can set the resolution of the game as well.

On the other hand, in the WebGL settings, there are slightly different settings here. There is still the “resolution” setting you can change, but this, more or less, changes the size of the Canvas and not the game size itself. Furthermore, you can determine if you want to use a template or just keep the background as plain.

Whether you choose to change the settings in Player Settings or not, it’s time to build the game. It’ll ask you the location in which you want the build to be, and click Save. Now, Unity will try to build the game for you

Depending on how many files it needs to process, it might take a while, so be patient. However, once it’s done, it’ll let you know if it was successful or was it a failure. If it’s successful, you finally have a finished build you can share with others.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store