Book Image

Mastering Unity 5.x

By : Alan Thorn
Book Image

Mastering Unity 5.x

By: Alan Thorn

Overview of this book

Mastering Unity 5.x is for developers wishing to optimize the features of Unity 5.x. With an in-depth focus on a practical project, learn all about Unity architecture and impressive animation techniques. With this book, produce fun games with confidence.
Table of Contents (16 chapters)
Mastering Unity 5.x
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Creating a player camera


The camera object is, in many ways, the most important in any scene because without the presence of at least one camera, the scene can't be rendered at all. Dead Keys will eventually feature multiple cameras, each with a dedicated purpose. But now, let's focus on the main camera; that is, the player perspective in the scene. For first person games, you could create a camera easily by dragging and dropping a First Person Controller from the Project panel into the scene, from the Characters asset package. However, for Dead Keys, we don't need that; our camera path is fixed as it moves through the level and the user doesn't need free-look controls with the mouse or WASD keys. Consequently, we'll create a custom camera from the ground upwards.

Let's start by creating a camera object, by navigating to GameObject | Camera from the application menu. This adds a fresh, new camera to the scene.

Previewing Occlusion Data

Each object in the scene may be tagged, using either...