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

Dealing with tasks

In this section, we are going to explore how the user can interact with Tasks, how he or she can visualize them, and how to create new ones as well.

A prefab as Task panel

Since the user can create more than one task and we would like to show them in a nice way, we need to create a reusable Task panel. Prefabs are great for reusable objects; therefore, we are going to use one.

First of all, we have to actually create a Task panel in our Scene before moving it into a prefab. The general idea is that the Task panel should show all the essential information about a task. This includes the name of the task, its icon, its priority, as well as the expire date. This is the overall design that we would like to achieve:

Let's start by creating a new UI image, and use the background in icons-task as a sprite. Rename it Task Panel. We should have something like the following:

We need to add a new image for the icon on the left, and another one for the priority on the right. Rename...