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 now! 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
Conferences
Free Learning
Arrow right icon
Hands-On Unity 2020 Game Development
Hands-On Unity 2020 Game Development

Hands-On Unity 2020 Game Development: Build, customize, and optimize professional games using Unity 2020 and C#

Arrow left icon
Profile Icon Nicolas Alejandro Borromeo
Arrow right icon
€17.99 €26.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (15 Ratings)
eBook Jul 2020 580 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Nicolas Alejandro Borromeo
Arrow right icon
€17.99 €26.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (15 Ratings)
eBook Jul 2020 580 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Hands-On Unity 2020 Game Development

Chapter 2: Setting Up Unity

In this chapter, we will learn why Unity is a good game engine to start out with. There are lots of ways to begin a game development career, so choosing the proper tool to do so is a huge first step. Then, we will see how to install Unity and create a project with Unity Hub, a tool that manages different Unity installations and projects, helping us to deal with a whole host of them.

Specifically, we will examine the following concepts in this chapter:

  • Why use a game engine such as Unity?
  • Installing Unity
  • Creating projects

Let's start by talking about why you should choose Unity to start your game development career.

Why use a game engine such as Unity?

When you want to create a game, you have several ways to do so, each with their pros and cons. So, why choose Unity? In this section, we will discuss the reasons for this, providing an overview of the previous and the current industry state, and specifically seeing the following concepts:

  • Past and present industry insight
  • Game engines
  • Positives of Unity

Past and present industry insight

At the beginning, users struggled with devices with limited resources but simple game designs. As the industry evolved, the hardware became more powerful and the games more complex than before. A big AAA game title requires almost 200 developers, working on different areas of the game. Each one of those roles requires years of experience, making games an expensive and risky task: you never know whether a game is going to be a success or a big waste of money. For these reasons, it was very difficult for a single person to make an entire game...

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...

Creating projects

Now that we have Unity installed, we can start creating our game. To do so, we first need to create a project, which is basically a folder containing all the files that your game will be composed of. These files are called assets and there are different types of them, such as images, audio, 3D models, script files, and so on. In this section, we will see how to manage a project, addressing the following concepts:

  • Creating a project
  • Project structure

Creating a project

As with Unity installations, we will use Unity Hub to manage projects. We need to follow these steps to create one:

  1. Open Unity Hub and click on the Projects button, and then click on NEW, as illustrated in the following screenshot:

    Figure 2.12 – Creating a new project in Unity Hub

  2. Pick the Universal Render Pipeline template, then a project name and a location, and hit Create. We will be creating a 3D game with simple graphics, prepared to run on every device Unity...

Summary

In this chapter, we discussed why Unity is a great tool for creating games, comparing it with other engines in the market. This analysis has the intention of helping you choose Unity as your first game development tool. After that, we also reviewed how to install and manage different Unity versions using Unity Hub, and, finally, we saw how to create and manage multiple projects with the same tool. We will use Unity Hub a lot, so it is important to know how to use it initially. Now, we are prepared to dive into the Unity Editor.

In the next chapter, we will start learning the basic Unity tools to author our first-level prototype.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Unleash the capabilities of C# scripting for creating immersive UI, graphics, Game AI agents and much more
  • Explore Unity's latest tools, including Universal Render Pipeline, Shader Graph, and VFX graph, to enhance graphics and animation
  • Get started with building augmented reality experience using Unity’s AR Foundation

Description

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.

Who is this book for?

This book is for game developers looking to migrate to the Unity game engine. If you are a developer with some exposure to Unity, this book will help you explore its latest features. Prior experience with C# programming is required to get the most out of the book.

What you will learn

  • Write scripts for customizing various aspects of a game, such as physics, gameplay, and UI
  • Program rich shaders and effects using Unity s new Shader Graph and Universal Render Pipeline
  • Implement postprocessing to increase graphics quality with full-screen effects
  • Create rich particle systems for your Unity games from scratch using VFX Graph and Shuriken
  • Add animations to your game using the Animator, Cinemachine, and Timeline
  • Implement game artificial intelligence (AI) to control character behavior
  • Detect and fix optimization issues using profilers and batching

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 29, 2020
Length: 580 pages
Edition : 1st
Language : English
ISBN-13 : 9781838647605
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Jul 29, 2020
Length: 580 pages
Edition : 1st
Language : English
ISBN-13 : 9781838647605
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 106.97
Learning C# by Developing Games with Unity 2020
€41.99
Hands-On Unity 2020 Game Development
€32.99
Unity 2020 By Example
€31.99
Total 106.97 Stars icon

Table of Contents

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

Customer reviews

Most Recent
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(15 Ratings)
5 star 66.7%
4 star 13.3%
3 star 6.7%
2 star 6.7%
1 star 6.7%
Filter icon Filter
Most Recent

Filter reviews by




L.A. Sep 20, 2021
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
While this book has some decent info in it, I have had to use my expertise (IT multimedia degree and knowledge of game programming from past years) to fix no less than 15 critical errors in the book to continue to get through it. And by critical I mean stops you dead in your tracks until you can solve them. This is a 22 chapter book, so the interruptive inconvenience is continual.This is by far the most difficult programming book I have ever had to get through and it's not even describing difficult concepts. Aside from randomly changing his naming conventions, the author even has undefined parameters (or completely broken ones) that he never even touches so far into the book that it's frankly a demoralizing experience. If this is your first book for Unity programming, look somewhere else.Because of how frustrating it was to get through, and needing to walk away from the project outlined in the book for days at a time sometimes, it has literally taken weeks to get through and it's just not a fun experience. Definitely do not purchase this if it's going to be your first experience into Unity game programming in general. You're going to get super mad if it is. He only gets a 2-star rating and not a 1-star rating because SOME of it works as described. I have not been able to get animation controllers or animation transitions to work as described, for example.I have not even yet finished the book, but will update my review when I do. Currently once again stuck at chapter 17.
Amazon Verified review Amazon
Mieshka Aug 11, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I purchased this for my son who is interested in writing code for game. He is only 11 so it is a bit overwhelming for him but he just reads sections he’s interested in. I see him reading it so I assume he’s getting something out of it. His first desk top PC is arriving in a day so he’ll finally get to try some of what he has learned out. I looked through the book and it seems like an excellent resource.
Amazon Verified review Amazon
Michael Levine Jun 23, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Overall, this book presents Unity in a fantastic level of detail. It does not go into any one topic in great detail, but provides a good foundational knowledge of many topics, and gives an idea of where to direct future learning.My main issue with the book is that it takes a long time to get to any actual programming. The first half or so of the book is dedicated entirely to the design of the world space, audio, postprocessing, UI, etc. Actual interaction with the world is saved for much later on. I would prefer an earlier focus on getting the reader to a point where they can interact with the space and then worry about the polish.While this isn't ideal, the chapters are also largely self-contained, so I don't think there would be an issue if you wanted to skip ahead and go straight to the portions that interest you.
Amazon Verified review Amazon
Jason May 05, 2021
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
More of a review on the quality of the book, the table of contents is misprinted. (example: Ch. 1 Documentation says it's on pg. 25, but actually it's on pg. 29. Throwing the book off like about 4 pages.) It's probably too late for a replacement, so here I am.
Amazon Verified review Amazon
Alan Feb 20, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Great introduction to unity for someone that's new to the program.Only 4 stars as there are a couple of annoying things in the example game. As an example if you follow the instructions the player character will pop towards and away from the screen. Takes quite a lot of googling to find a solution. Hint you have to remove the root transformation from the animations. There are other similar "bugs" to this one. The the author doesn't acknowledge or give any guidance on how to fix them.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.