Book Image

Getting Started with Unity 2018 - Third Edition

By : Dr. Edward Lavieri
Book Image

Getting Started with Unity 2018 - Third Edition

By: Dr. Edward Lavieri

Overview of this book

The Unity game engine has revolutionized the gaming industry with its complete set of intuitive tools and rapid workflows, which can be used to create interactive 3D content. With Unity, you can scaffold your way from the basics and make make stunning interactive games. This book will guide you through the entire process of creating a 3D game, from downloading the Unity game engine to publishing your game. It not only gives you a strong foundation, but puts you on the path to game development. Beginning with an overview of the Unity engine and its interface, you will walk through the process of creating a game environment and learn how to use built-in assets, as well as assets created with third-party 3D modeling tools such as Blender. Moving on, you will create custom scripts to control non-player character behaviors and gameplay. You will master exciting concepts such as Heads-Up-Displays, mini-maps, game navigation, sound effects, and lighting effects. Next, you’ll learn how to create your first VR experience, right from setting up the project to image effects. You'll be familiarized with all the tools that Unity has to offer to create your own immersive VR experiences. Each section is a stepping stone toward the completion of the final game. By the end of the book, you'll have learned advanced topics such as cross-platform considerations which enable your games to run on multiple platforms.
Table of Contents (21 chapters)
Title Page
Packt Upsell

Painting the terrain

We are now ready to give our terrain some color. We will start by covering the entire terrain with a grass texture. To accomplish this, ensure the Terrain is selected in the Hierarchy panel. Then, in the Inspector panel, select the Paint Texture tool. As you can see here, that is the fourth icon in the Terrain section of the Inspector panel:

As you can see, we do not have any textures defined. We actually do not have any appropriate textures in our project yet, so let's take care of that with a few simple steps:

  1. In the Project panel, click the Assets folder.
  2. In the right section, right-click and select Create | Folder. Name the folder Textures.
  3. Download the grass_starter_texture.jpg file from the publisher's companion site.
  4. Drag the grass_starter_texture.jpg file from your filesystem to the Textures folder you created in step 1.

Now that you have a grass texture in your Unity project, let's apply it to our terrain. Here are the steps:

  1. Select Terrain in the Hierarchy panel.
  2. In...