Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Unity 2020 Game Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
Hands-On Unity 2020 Game Development

Hands-On Unity 2020 Game Development

By : Nicolas Alejandro Borromeo
4.3 (15)
close
close
Hands-On Unity 2020 Game Development

Hands-On Unity 2020 Game Development

4.3 (15)
By: Nicolas Alejandro Borromeo

Overview of this book

Over the years, the Unity game engine has extended its scope from just being about creating video games to building AR/VR experiences, complex simulations, real-time realistic rendering, films, and serious games for training and education. Its features for implementing gameplay, graphics, and customization using C# programming make Unity a comprehensive platform for developing professional-level, rich experiences. With this book, you'll be able to build impressive Unity projects in a step-by-step manner and apply your knowledge of Unity concepts to create a real-world game. Complete with hands-on tutorials and projects, this easy-to-follow guide will show you how to develop your first complete game using a variety of Unity tools. As you make progress, you'll learn how to make the most of the Unity Editor and create scripts using the C# programming language. This Unity game development book will then take you through integrating graphics, sound, and animations and manipulating physics to create impressive mechanics for your games. You'll also learn how to code a simple AI agent to challenge the user and use profiling tools to ensure that the code runs in a performant way. Finally, you'll get to grips with Unity's AR Foundation for creating AR experiences for 3D apps and games. By the end of this book, you'll have developed a complete game and will have built a solid foundation using Unity's tooling ecosystem to develop game projects of any scale.
Table of Contents (24 chapters)
close
close
20
Chapter 20: Building the Project

Installing Unity

Okay; after all of that, you've decided to go with Unity—great decision! Now, where do we start? Let's start with a simple but necessary first step: installing Unity. It seems like a straightforward first step, but we can discuss a little bit about the proper ways to install it. In this section, we will be looking at the following concepts:

  • Unity technical requirements
  • Unity versions
  • Installing Unity

To run Unity 2020, your computer will need to met the next requirements:

  • If you use Windows, you need Windows 7 SP1 or higher, 8 or 10. Unity will run only on 64-bit versions of those systems; there is no 32-bit support.
  • For Mac you need macOS High Sierra 10.13 or higher.
  • For Linux you need exactly Ubuntu 16.04 or 18.04 or CentOS 7.
  • Your CPU needs to support 64 bits and SSE2 (most CPUs support it).
  • A graphics card with DirectX 10 support (most modern GPUs support it) on Windows, Metal support on Mac and Open GL 3.2+ or Vulkan support on Linux.

Now that we know the requirements, let's discuss the Unity versioning system.

Unity versions

In previous versions of Unity, we used to simply download the installer of a specific Unity version and hit Next until it was installed. But when you use Unity professionally, you need to have several versions of Unity installed because you will be working on different projects made with different versions. You may be wondering why you can't just use the latest Unity version for every project, but there are some problems with that.

In new versions of Unity, there are usually lots of changes about how the engine works, so you may need to rework lots of pieces of the game to upgrade it. Also, you may be using plugins that just haven't adapted to updates yet, so those will stop working. In my personal projects, I am used to doing project upgrades; but just for learning purposes, in a project that has a specific release date, it can take lots of time to upgrade the whole project, and that can push the release date back a lot. Maybe you need a specific feature that comes with an update that will help you a lot. In such a case, the cost of upgrading may be worthwhile, but take into account that most of the time, this doesn't happen.

Managing different projects made with different Unity versions, installing and updating new Unity releases, and so on used to be a huge hassle, but Unity Hub was created just to help us with this, and it has become the default way to install Unity. Let's see more about it.

Installing Unity with Unity Hub

Unity Hub is a small piece of software you install before installing Unity. It centralizes the management of all your Unity projects and installations. You can get it from the Unity official site. The steps to download it change frequently, but at the time of writing this book, you need to do the following:

  1. Go to unity.com.
  2. Click on the Get started blue button, as shown in the following screenshot:
    Figure 2.1 – TheGet started button on the Unity site

    Figure 2.1 – The Get started button on the Unity site

  3. Click on the Individual tab and on the Get started button under the Personal section, as illustrated in the following screenshot:
    Figure 2.2 – Choosing an individual/free license

    Figure 2.2 – Choosing an individual/free license

  4. Click on the Start here button in the New Users section, as illustrated in the following screenshot:
    Figure 2.3 – Starting the download

    Figure 2.3 – Starting the download

  5. Accept the terms and conditions, as illustrated in the following screenshot:
    Figure 2.4 – Agreeing to the privacy policy

    Figure 2.4 – Agreeing to the privacy policy

  6. Execute the downloaded installer.

Consider that we are using Unity Hub 2.3.2, the latest version at the moment of writing this book. If you use a newer one some steps might change, but the main concepts usually remain. Now that we have Unity Hub installed, we must use it to install a specific Unity version. You can do this with the following steps:

  1. Start Unity Hub.
  2. It may ask you to create a Unity account. If so, just create one and log in with that account. If not, click the person icon at the top-right part of the window and select Sign in to have the option to log in or create an account, as illustrated in the following screenshot:
    Figure 2.5 – Logging in to Unity Hub

    Figure 2.5 – Logging in to Unity Hub

  3. Follow the steps on the installer and then, you should see the following screen:
    Figure 2.6 – Unity Hub window

    Figure 2.6 – Unity Hub window

  4. Newer versions of Unity guides you through the Unity Installation and first project creation. In that case skip the next steps, but if you already have Unity installed, please follow them
  5. Click on the Installs button and check if you have Unity 2020 listed there. If not press the ADD button. Make sure the latest Unity 2020 release (in my case Unity 2020.1.0f1) is selected, and then click on the NEXT button. Your screen may show a newer version than mine, so don't worry about that. The process is illustrated in the following screenshot:
    Figure 2.7 – Picking the Unity version to install

    Figure 2.7 – Picking the Unity version to install

    Important Note:

    This is the program we will use in Chapter 13, Introduction to Scripting with C#, to create our code. We do not need the other Unity features right now, but you can go back later and install them if you need them.

  6. A feature selection window will show up. Make sure Microsoft Visual Studio Community is checked. At the time of writing this book, the latest version is 2019, but a newer one could work just as well. Now, click the NEXT button. The process is illustrated in the following screenshot:
    Figure 2.8 – Selecting Visual Studio

    Figure 2.8 – Selecting Visual Studio

  7. Accept Visual Studios terms and conditions, as illustrated in the following screenshot:
    Figure 2.9 – Accepting Visual Studio’s terms and conditions

    Figure 2.9 – Accepting Visual Studio's terms and conditions

  8. You will see the selected Unity version downloading and installing in the list. Wait for this to finish. In the following screenshot, you will see that I have other Unity versions installed, but you will only be seeing one version, which is fine:
    Figure 2.10 – All Unity installations I currently have on my machine

    Figure 2.10 – All Unity installations I currently have on my machine

  9. After Unity has finished installing, Visual Studio Installer will automatically execute. It will download an installer that will download and install Visual Studio Community 2019, as illustrated in the following screenshot:
Figure 2.11 – Installing Visual Studio

Figure 2.11 – Installing Visual Studio

Remember that the preceding steps may be different in new Unity versions, so just try to follow the flow that Unity designed—most of the time, it is intuitive. Now is the time to create a project using Unity.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Unity 2020 Game Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon