I still have a lot of work to do before I finish my game. Nonetheless, I want to see what others have to say about it. Therefore, I will create a test build to share with my friends and hopefully get some feedback.
In this article, I will cover the basics of how to create a stand-alone build of your game.
When I wrote about loading scenes in Unity, I briefly touched upon Scene Management. In doing so, I showed how Unity manages Scenes in a build.
It’s time to go more in-depth into this subject.
While on our main game scene, we can click on File > Build Settings to open the build settings window.
The list of scenes is currently empty.
I currently only have one scene in my project. I can add the current scene to the list by clicking on the Add Open Scenes button.
Notice that the new scene is assigned a value of 0. Unity uses an indexing system to list all of the Scenes that a project contains. The index list begins at 0 and extends as far as the number of scenes included.
For now, my test build will begin directly in my game scene.
Before building the test project, I will adjust some settings. I will access these settings by clicking on Player Settings on the bottom left.
I have set my Full Screen Mode to Windowed and have also changed the resolution for this build.
Before I build my game, I will make sure that the Target Platform is selected correctly. Notice that the Platform is PC, Mac & Linux Standalone. I also make sure my Target Platform is Windows.
The next step is to click on the Build button. A new explorer window will open where Unity prompts you to select a destination folder for the build.
Unity will begin building your game.
Once the Editor completes its task, the game will be ready to play. You can find the executable file in the folder you created for this build.
You are now ready to test out your game. If you run into any bugs or issues while you play, you will be able to fix them and build your project again. You will also be able to compress the entire build folder and share it with your friends — I hope mine will have good things to say about my progress.