Building and Testing a Unity Game
If the Unity project is designed for mouse and keyboard input, testing a playable build is pretty simple; the first time a build is set up takes a bit of tweaking, but after that, one may build much faster by clicking Build and Run (Ctrl + B); for the first build, lets set everything essential for the engine to build. First go to: File > Build Settings.
Inside the build settings, we first want to add all of the scenes that must be included in this build as well as their index order:
Since we are building for PC, the platform selection “Windows, Mac, Linux” is perfectly fine. Before building this, Player Settings must be adjusted slightly:
Once this is set up, the Player Settings windows may be closed and back on the Build Settings windows click on Build; since programs like GitHub cannot upload heavy files like game builds, its good practice to make a folder for platform builds outside the project and store them there. Once that is settled, the game engine will freeze and start building like this:
And now we can try playing through this file:
This playable build can now be shared and tested by other players on any PC!