Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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#

By Nicolas Alejandro Borromeo
$29.99
Book Jul 2020 580 pages 1st Edition
eBook
$29.99
Print
$43.99
Subscription
$15.99 Monthly
eBook
$29.99
Print
$43.99
Subscription
$15.99 Monthly

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

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 : Jul 29, 2020
Length 580 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781838642006
Category :

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
Buy Now

Product Details


Publication date : Jul 29, 2020
Length 580 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781838642006
Category :

Table of Contents

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

Customer reviews

Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Top Reviews
No reviews found
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.