Simple play icon Course
Skills Expanded

Unity Mobile Game Development: Saving Data and Highscores

by Chris Glick

In this Unity tutorial, we'll learn how to save data between play sessions with PlayerPrefs and create a highscore level for deployment to iOS or Android. Software required: Unity 3.4.

What you'll learn

In this Unity tutorial, we'll learn how to save data between play sessions with PlayerPrefs and create a highscore level for deployment to iOS or Android. Through these lessons, we'll learn how we can use the GUI class to draw various text and images on our screen. From there, we will examine time-saving techniques for placing our GUI elements with the inspector accurately. We'll learn how we can use arrays to store multiple pieces of data and how we can display lists using for loops. Then we'll re-factor our array into a highscore class. With our display set up, we will learn the commands to access our PlayerPrefs and the logic we need to sort and store our data. Finally, we'll see how we can use mobile keyboards and examine a faster method of saving data for mobile platforms. From basic preferences like display settings to more complex structures like high scores, it's important to understand how to save data after we close our game. Software required: Unity 3.4.

Table of contents

Introduction and Project Overview
1min
Unity Mobile Game Development: Saving Data and Highscores
213mins

About the author

Along with creating and recording training, he also used to manage the support team and work closely with the production development team at Digital-Tutors, now a Pluralsight company. He began his career working freelance and quickly realized that he wanted to find a company where he could use his talents to help people succeed in the CG industry. Chris has likely watched more Pluralsight creative training than anyone on the planet, and its evidenced by his Einstein-sized brain and encyclopedic... more

Ready to upskill? Get started