Book Image

Unity 5.x Game Development Blueprints

By : John P. Doran
Book Image

Unity 5.x Game Development Blueprints

By: John P. Doran

Overview of this book

<p>This book will help you to create exciting and interactive games from scratch with the Unity game development platform. We will build 7-8 action-packed games of different difficulty levels, and we’ll show you how to leverage the intuitive workflow tools and state of the art Unity rendering engine to build and deploy mobile desktop as well as console games.</p> <p>Through this book, you’ll develop a complete skillset with the Unity toolset. Using the powerful C# language, we’ll create game-specific characters and game environments. Each project will focus on key Unity features as well as game strategy development. This book is the ideal guide to help your transition from an application developer to a full-fledged Unity game developer</p>
Table of Contents (19 chapters)
Unity 5.x Game Development Blueprints
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Level editor – introduction


To create something that can save files, we'll need to cover new territory. We've already discussed working with PlayerPrefs back in Chapter 5, Shooting Gallery – Working with Animations and Tweens, but there can be a time when you want to save things other than just string, int, or float variables. To deal with complex data types, there are more things that we can do. Perform the following steps:

  1. We are going to first open up our 3D Platformer project we created back in Chapter 6, Side-Scrolling Platformer. Open your gameplay scene (in the example code saved as Gameplay) from the link described in the project setup.

  2. As it currently stands, the ability to create our levels is inside our GameController script. For this project, however, we're going to extract that functionality and move it over to a new class. In Project Browser, go to the Scripts folder and create a new C# script named LevelEditor. With this finished, open your IDE.

  3. Once there, click on the GameController...