Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Unity 2020 Game Development

You're reading from   Hands-On Unity 2020 Game Development Build, customize, and optimize professional games using Unity 2020 and C#

Arrow left icon
Product type Paperback
Published in Jul 2020
Last Updated in Jun 2025
Publisher Packt
ISBN-13 9781838642006
Length 580 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nicolas Alejandro Borromeo Nicolas Alejandro Borromeo
Author Profile Icon Nicolas Alejandro Borromeo
Nicolas Alejandro Borromeo
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Chapter 1: Designing a Game from Scratch 2. Chapter 2: Setting Up Unity FREE CHAPTER 3. Chapter 3: Working with Scenes and GameObjects 4. Chapter 4: Grayboxing with Terrain and ProBuilder 5. Chapter 5: Importing and Integrating Assets 6. Chapter 6: Materials and Effects with URP and Shader Graph 7. Chapter 7: Visual Effects with Particle Systems and VFX Graph 8. Chapter 8: Lighting Using the Universal Render Pipeline 9. Chapter 9: Fullscreen Effects with postprocessing 10. Chapter 10: Sound and Music Integration 11. Chapter 11: User Interface Design 12. Chapter 12: Creating Animations with Animator, Cinemachine, and Timeline 13. Chapter 13: Introduction to Unity Scripting with C# 14. Chapter 14: Implementing Movement and Spawning 15. Chapter 15: Physics Collisions and Health System 16. Chapter 16: Win and Lose Conditions 17. Chapter 17: Scripting the UI, Sounds, and Graphics 18. Chapter 18: Implementing Game AI for Building Enemies 19. Chapter 19: Scene Performance Optimization 20. Chapter 20: Building the Project 21. Chapter 21: Finishing Touches 22. Chapter 22: Augmented Reality in Unity 23. Other Books You May Enjoy

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
You have been reading a chapter from
Hands-On Unity 2020 Game Development
Published in: Jul 2020
Publisher: Packt
ISBN-13: 9781838642006
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon