5 Indie Game Dev Techniques to Save & Load Data in Unity
3.9 (97 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,669 students enrolled

5 Indie Game Dev Techniques to Save & Load Data in Unity

Learn 5 techniques commonly used by indie game developers to save and load game data in Unity
3.9 (97 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,669 students enrolled
Created by Dave Savic
Last updated 12/2016
English
English [Auto]
Current price: $62.99 Original price: $89.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 1 hour on-demand video
  • 6 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Save and load data using PlayerPrefs
  • Save and load data using a Text file and string manipulation
  • Save and load data using Binary Serialization
  • Save and load data using XML Serialization
  • Save and load data using SQLite
Course content
Expand all 6 lectures 01:04:52
+ Introduction
1 lecture 02:26

This is a brief introduction and overview of the course content. By the end of this video, you will have a brief overview of what to and not to expect from this course. If you're watching this video after signing up to the course then I wish you good luck for the rest and have fun! I would also love to hear of your very own implementations using the methods outlined throughout this course.

Preview 02:26
+ PlayerPrefs
1 lecture 08:03

In this lesson we cover one of the most basic way to persist data between game sessions. PlayerPrefs is a Unity3D specific data handling method that is extremely simple to use. By the end of this video, you will know a few key points to using PlayerPrefs when handling your games' data, as well as how to do the actual saving and loading.

Preview 08:03

Test your knowledge of the PlayerPrefs Example video tutorial.

PlayerPrefs Questonnaire
4 questions
+ Textfile
1 lecture 15:09

In this lesson we look at a customizable way of storing your game data using text files. We cover the basics of string manipulation and creating your own format for saving and loading data in a text file. By the end of this lesson you will have a basic data handling method to save and load your games data between game sessions.

TextFile
15:09

A small test on what you learned in the Textfile lesson.

Textfile Questionnaire
4 questions
+ Binary Serialization
1 lecture 09:37

In this lesson we cover our first serialization topic, binary serialization. Binary serialization is a very common way to persist your data as it provides a decent amount of security. By the end of this lesson you will understand how to save and load your custom data using binary serialization. The content in the video is designed to be type specific as opposed to the XML tutorial where I introduce generics. As the video is type specific, I have included the same method implemented with generics as a downloadable resource for you. I recommend you watch the XML serialization tutorial prior to downloading the generic implementation, so you understand what is happening.

Serialization (Binary)
09:37

A small test on what you learned in the Binary Serialization tutorial.

Binary Serialization Questionnaire
4 questions
+ XML Serialization
1 lecture 10:07

In this lesson we look at one of the most favoured ways of persisting data. To implement XML Serialization is very similar to the Binary Serialization tutorial, however, I introduce you to generics. Generics allow us to determine, which type of object gets parsed in and returned from the methods. Generics are a flexible way of writing your code and allow for easy code re-use, as well as improving performance. At the end of this lesson, you will have a basic understanding of the most used XML formats, as well as a generic script to save and load your custom data types.

Serialization (XML)
10:07

This basic test contains questions about the XML Serialization tutorial.

XML Serialization Questionnaire
4 questions
+ SQLite
1 lecture 19:30

In this lesson we cover a more advanced method of persisting your data between game sessions. SQLite is used for manipulating data in databases, and we look at storing and retrieving data using it. This implementation covers SQL queries such as, Update, Insert and Select. More SQL queries are covered in this video, however, those are the main ones. By the end of this lesson you will have a clear and concise method of dealing with data in databases utilizing SQLite. You will also learn how to obtain your own DLL's to use for the project.

SQLite
19:30

A basic test on what you learned from the SQLite tutorial.

SQLite Questionnaire
4 questions
Requirements
  • You must have downloaded and installed Unity3D and a script editor.
  • You should be familiar with Unity3D and C#. Beginner level with basic programming knowledge is completely fine.
  • You must have an SQLite database editor. I will be demonstrating everything with DB Browser for SQLite, which is free to download.
Description

Indie game developers are more common these days than ever before.

The indie market is currently flooded with low quality games which have poor mechanics, poor graphics and lack basic must-have features.

The high competitiveness of this industry means you really need to have everything + the kitchen sink implemented in your game, so it stands out when a potential user stumbles across it.

Every game needs a tried and tested way to manage the users in-game data... by that I mean every game needs to implement saving and loading in a way that allows the developer to easily scale in the future ensuring that you spend more time on new features and less time on refactoring.

There are a lot of tutorials out there on this topic, but IMO around 90% are doing it wrong and setting themselves and their readers/viewers up for failure.

The best way to implement something is usually the industry standard way. You don’t see companies making square shaped wheels do you? That’s because circular shaped wheels are proven to work and have been rigorously tried and tested by car companies.

The 5 techniques for saving and loading game data that I teach in this course are ALSO proven and rigorously tried and tested in the industry.

I’ve been in the game industry for over a decade now and through experience and speaking with others in the industry, I’m going to share with you how we save and load data using PlayerPrefs, Text File, Binary Serialization, XML Serialization, and SQLite.

Every method has their pros and cons, and I explain all these throughout the course. This is so you get a good understanding of when and when not to use that type of technique.

By the end of the course, you’ll be able to implement saving and loading in your game like us indie devs do. A 60 minute course isn’t going to make you the next Notch, but this course will definitely point you in the right direction.

If not, I urge you to please request a 100% refund because I don’t want your money if you didn’t learn anything. It’s not fair on you and I’m not here to take your money if you get nothing out of this course.

Who this course is for:
  • This course is for anyone with at least basic programming experience and knowledge of Unity3D
  • This course is for anyone who wants to know how to save and load their game data
  • This course is for anyone who wants to learn 5 powerful techniques to save and load game data in 1 hour
  • This course is NOT for you if you want to know which methods work for the different platforms
  • This course is NOT for you if you think you'll be an expert on saving and loading game data after this course
  • This course if NOT for you if you already know how to save and load data using normal C# methods (Text file, Xml, Binary, Sqlite)