Building the Game

Exercise

Beginner

+20XP

10 mins

Unity Technologies

Building the Game

In this tutorial, you’ll:

  • Create a build of your game for Windows or macOS
  • Identify the next steps in your personal learning journey

Note: Linux support is currently in preview, and not fully supported. The steps to build for Linux should be broadly parallel to those for Windows; if you encounter a bug, please report it to the team.

Resources

1. Overview

In this final tutorial, you’ll:

  • Create a build of your game for Windows or macOS
  • Identify the next steps in your personal learning journey

By the end of this tutorial, your game will look something like this:

2. Create a build of your game

Follow the video or text instructions below to configure your build settings, configure your player settings, build your game, and finally play your standalone game:

Download Transcript

1. Configure your build settings.

  • Save your scene.
  • To open the Build Settings window, from the main menu go to File > Build Profiles. Alternatively, you can press Shift+Control+B (macOS: Shift+Cmd+B).
  • Select Windows, Mac, or Linux in the Platforms panel
  • In the Scene List, select Open Scene List, then Add Open Scenes to add your Roll-a-ball game to the build. You can also drag scenes from the Project window to this list.
  • If SampleScene is showing in the list, disable it to exclude it from your build.

2. Configure your player settings.

  • Select Player Settings to open a range of different configuration options for the Game view.
  • If you want, change the Company Name, Product Name, and Version.
  • Select Resolution and Presentation and change the Fullscreen Mode box to Windowed.
  • By default this will have a resolution of 1024 by 768, but set the default width and height to something smaller if your screen uses a lower resolution.
  • Close the Project Settings window and return to the Build Settings window.

3. Build your game.

  • Select Build. This will bring up a dialog that asks you to choose a build location.
  • To keep things tidy, create a new folder inside your project called “Builds” at the root of the project, alongside the Assets and Library folders.
  • If you’re using macOS, you can also choose a name for your build.
  • Confirm that you want to Select Folder (Windows) or Save (macOS). Unity will now build the application and save it to the Builds folder.

4. Play your standalone game!

  • Navigate to the Builds folder and then run the executable application.
  • Note: When building for macOS, Unity builds an .app bundle that contains all of the relevant data and files. When building for Windows, Unity builds an .exe file and a data folder that contains all of the necessary resources.

3. Your next steps

After you’ve finished your project, what will you do next? Consider some of the options below:

Download Transcript

Solidify your programming fundamentals

If you are not already confident with your programming, it is recommended that you start with Create with Code or the more comprehensive Junior Programmer Pathway, which will take your programming skills to the next level. You can also check out the Creator Kit: Beginner Code project!

Expand your artistic design skills.

You did a bit of design in this project, but there is an entire Creative Core pathway that will take you through the fundamentals of materials, visual effects, lighting, post-processing, audio, user interface design, and more.

Continue with more game development.

If you want to continue down the games path, Unity Learn has a wide range of games-based learning content, including the following:

4. Submit your project

If you went above and beyond and created your own take on the Roll-a-ball game, take a screenshot or screen-recording and post it here to share what you made! To upload your project online as a WebGL build so others can play it, you can:

  1. Follow the instructions to create and build your project for WebGL.
  2. Share a link in your submission description below so other people know where to find it.

Please also share any "behind-the-scenes" info about how you made your project!

Proud of your project? Share it to the Unity Play showcase by December 20 for a chance to be featured on a Unity Twitch stream.

Please login to submit

Complete this Tutorial

Submission Gallery

Blade War

Blade War

I created a simple 3D game in Unity to learn the fundamentals of game design. In this game, the player controls a character and collects coins scattered around the level while avoiding obstacles. The objective is to collect all coins and achieve the highest score possible. For this project, I created my own 3D models in Autodesk Maya and textured them using Adobe Substance 3D Painter. This allowed me to apply my knowledge of 3D modeling, UV mapping, and texturing while developing the game. The game helped me understand important game design concepts such as player movement, collision detection, scoring systems, level design, and user interaction. Through this project, I gained practical experience in integrating assets, creating gameplay mechanics, and developing a complete game workflow from modeling and texturing to implementation in Unity

R
ravigahlot44
4
0
My First Ball Game

My First Ball Game

Literally my first game and I know it’s floppy but I did my best! I had fun making it.

R
r-miyagi4226
16
0
Roll-a-ball demo

Roll-a-ball demo

Tutorial game

W
wfh257
14
0
Roll-a-Ball

Roll-a-Ball

I create a simple ball game by learning through unity tutorial. This is my first time using unity and making game.

M
madhanrajgameboypro
14
0
Rolllll Balllll

Rolllll Balllll

This is a simple 3D game developed in Unity where the player controls a rolling ball and collects floating pickups around the level. The project helped me learn the fundamentals of Unity, including player movement, physics, collision detection, scripting with C#, UI updates, and game logic. Completing this project improved my understanding of game development workflows and provided hands-on experience with creating interactive gameplay mechanics.

T
trupalp13
22
0
Roll-a-ball

Roll-a-ball

Just me following the tutorial. This is no original game.

A
athingbegan
24
0