Book Image

Unity Game Development Blueprints

By : John P. Doran
Book Image

Unity Game Development Blueprints

By: John P. Doran

Overview of this book

Table of Contents (16 chapters)
Unity Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating tiles


Before we get started, it's a good idea to see how the object looks to us, so let's add in a temporary controller to give us an idea of what it looks like:

  1. Go to the Prefabs folder, and drag-and-drop one of the modified First Person Controller prefabs that we made in the previous chapter into the Scene view. Once done, set Position to (0, 1, 0). Rather than setting each of the properties, we can easily do this by right-clicking on Transform and selecting Reset Position and then setting the Y position to 1. After this, in the Character Motor component, under the Movement section, set Gravity to 0 so that we do not fall for the time being (we will replace this controller later):

  2. Right now, if you play the game, there will be a warning about having two audio listeners in the scene. This is due to having two main camera objects in our scene that contain audio listener components. Delete the one that is not part of our First Person Controller prefab by selecting the Main Camera object...