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
All 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
Mastering Unity 5.x

You're reading from   Mastering Unity 5.x Create amazing games with brilliant game play features using Unity 5.x

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781785880742
Length 592 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alan Thorn Alan Thorn
Author Profile Icon Alan Thorn
Alan Thorn
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Mastering Unity 5.x
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Preparation and Asset-Configuring 2. Level Design and Structure FREE CHAPTER 3. Player Controls - Movement 4. Player Controls - Typing and Health 5. Enemies and Artificial Intelligence 6. Project Management and Version Control 7. Persistent Data - Load and Save Game States 8. Performance, Optimization, Mobiles, and More

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

You have been reading a chapter from
Mastering Unity 5.x
Published in: Jan 2017
Publisher: Packt
ISBN-13: 9781785880742
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 $15.99/month. Cancel anytime
Visually different images