Time for action – deploy your game
You may be wondering why the section on deploying your game has been squeezed into a tiny section at the very end of the book. That's because Unity makes it so darned simple to package up your game, that we don't need any more space. Here's how to do it:
In the menu, navigate to File | Build Settings....
We need to add the Scenes to this list that we want bundled into our game file. The first Scene we add to the list will be the first one Unity displays to our player, so that's where our preloader or title screen should normally go.
Because we have only one Scene in this game so far, click on the Add Current button to pop it into the list. In games with multiple Scenes, you can simply click-and-drag those Scenes into the list to add them to the build. Be sure to choose Web Player as your deployment preference if you'd like a file that can be played in a browser.
Click on the Build And Run button.
Unity asks where you want to save the
.unity3d
game file. Choose...