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

Data Serialization


Data is a raw material for most games; even relatively simple games require characters to have health, damage points, shields, and others in addition to item data, such as sword-strengthsword-fragility, and so on. Thus, data is critically important for gameplay to behave as intended. When it comes to working with data, developers typically have two main needs. The need to save or export the state of a game at any time, allowing the player to save their progress and then to resume it at a later time even if the device has been powered-off between play sessions; and second, the need to import data, such as weapon-stats and character sheets (and the player's saves), from external sources created by designers, such as a spreadsheet or a database. The basic idea is that in-game objects and entities, and their relationships and states, should have a correspondence with data. We should be able to represent the state of a game in a way that can be meaningfully committed to a...