Book Image

Gamification with Unity 5.x

By : Lauren S. Ferro
Book Image

Gamification with Unity 5.x

By: Lauren S. Ferro

Overview of this book

Are you looking at implementing gamification techniques for your business and wondering where to get a complete rundown of all the tricks and techniques? Well, you have come to the right place! This book will start right from the basics such as gameplay elements and their functionalities before gradually moving onto creating your first gamification project from scratch. You’ll be given the tools and shown how to perform various techniques for creating gamified applications in different contexts. Finally, you will implement various game elements into Unity, publish your own task management application, and get to know the best practices and approaches when designing gamified experiences.
Table of Contents (16 chapters)
Gamification with Unity 5.x
About the Author
About the Reviewer


As you can guess from the title of the book, this book is designed to teach you about implementing gamification into Unity. However, this isn’t any ordinary how-to guide. It will give you not only a strong theoretical foundation of what gamification is, but also how it can be implemented to achieve different results. It discusses motivation, reward schedules, feedback loops, and how these all impact the end user. In addition, this book will also guide you through the process of game development from concept to implementation, including testing, iterating, marketing, and finally publishing.

What this book covers

Chapter 1, The Anatomy of Games, explains the different components of gameplay and their functionalities. We will explore what games are made up of–the atoms of gaming experiences and how they are used.

Chapter 2, Who or What am I? - Understanding the Player, tells the readers that in designing and developing a gamified application, it's very important to study and understand the audience, and how they behave as players. Therefore, in this chapter, the reader will be provided with different tools to specifically engage his target audience. More importantly, the readers will learn how to understand and to design these specific tools inside Unity.

Chapter 3, An Engaged Player is a Happy Player, will discuss ways to provide feedback and reinforcement as well as tracking the progress of the player during their engagement with the application. In addition, it will describe ways to actively engage players throughout the experience.

Chapter 4, An Organized Chaos - Getting Ideas Out of Your Head and on to Paper, will explain how to design a gamified application before starting to create a final version. The reader will learn different and specific techniques for process of creating gamified applications in different contexts, allowing the reader to have more tools to face the challenge. Furthermore, it is also shown how it is possible to use Unity during the process to help the reader to create helpful tools in Unity to generate new ideas.

Chapter 5, Sculpting the Conceptual Beast, shows that having a hard copy of the application the reader has in mind can avoid many restructuring and recording later. Therefore, this chapter introduces a series of tools to the reader for creating a physical prototype of the application. At this stage, the reader will get an idea of how to test it with its target audience to avoid wasting time and programming resources later on in the process. This will also extend what the reader has done in previous chapters, but add more functionality.

Chapter 6, Breathing Life to Your First Creation: Creating and Importing Assets for Your Application!, will show the reader how to gather all the concepts from the previous chapter and get them working together inside Unity. By the end of this chapter the reader will have acquired the right skills to implement all of them inside Unity.

Chapter 7, Get Your Motor Running, will explain to the reader how to implement various game elements into Unity that relate to the project. This provides the basic foundation and practical skills that the reader will need later on when developing the project. Each game element will be provided with a clear explanation of how to create it within Unity.

Chapter 8, Break, Destroy, and Rebuild - The Art of Playtesting and Iteration, will reveal methods of playtesting and iteration, in order to improve the design  of their project. It will suggest ways to test, what to look for and what to pay attention to during this stage.

Chapter 9, Graduating Your Project to Completion, will wrap up everything that we have done as part of the project. It will make sure that the project is ready to publish and that the reader has developed all the necessary skills to get it to the final stage. It will also discuss different marketing techniques and approaches to online social networking services to give a gamified application the best possible chance for success across a wide audience.

Chapter 10, Being the Best That You Can Be!, will consider everything together that the reader has learned during the process and make recommendations some of the best practices during the design process and some of the key things to look for.

What you need for this book

Throughout the book we have used Unity 5.x to develop the gamified application. We have also used Adobe Illustrator to complete some of the images. However, it is possible to use any graphics creation program that you feel comfortable with using. In some instances, word processing software is required to create documents, but feel free to use whatever you prefer (for example, Microsoft Word, Adobe InDesign, Open Office). Other than that, the only requirement from you is to bring your imagination and creativity.

Who this book is for

If you are a project manager, game developer, or programmer who wants to create successful end-to-end gamification projects from scratch, then this is the book for you. You do not need any previous experience of working with Unity 5.X. All the details required to make the most of gamifying your projects are provided in the book.


In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."

A block of code is set as follows:

using UnityEngine;
using System.Collections;
public class BrainstormingTool : MonoBehaviour {

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "They need to be inside a folder named Editor."


Warnings or important notes appear in a box like this.


Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply e-mail [email protected], and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at We also have other code bundles from our rich catalog of books and videos available at Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from


Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to and enter the name of the book in the search field. The required information will appear under the Errata section.


Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at [email protected] with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.


If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.