Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamification with Unity 5.x

You're reading from   Gamification with Unity 5.x Build exhilarating gaming experiences using a wide range of game elements in Unity 5.x

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher Packt
ISBN-13 9781786463487
Length 328 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Lauren S. Ferro Lauren S. Ferro
Author Profile Icon Lauren S. Ferro
Lauren S. Ferro
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Anatomy of Games 2. Who or What Am I? Understanding the Player FREE CHAPTER 3. An Engaged Player is a Happy Player 4. Organized Chaos - Getting Ideas Out of Your Head and on to Paper 5. Sculpting the Conceptual Beast 6. Breathing Life into Your First Creation - Creating and Importing Assets for Your Application 7. Get Your Motor Running 8. Break, Destroy, and Rebuild - the Art of Playtesting and Iteration 9. Graduating Your Project to Completion 10. Being the Best That You Can Be!

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image