How to Save & Load Data in Unity (C#)
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
- Preview02:26
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)
Instructor
Hi I'm Dave. I've been programming for around 10 years now and creating games for around 6. I first started programming by creating macro scripts for a popular online game. I believe that was where my passion for game development and programming came from.
I first started teaching around 3 years ago when I created a few tutorials on Youtube, demonstrating how to make games with Java. I have since moved on from there and I'm now developing tutorials in C# and Unity3D.
My goal is to provide you with quality content that you can say you've learned at least one thing from. If you honestly didn't learn anything from one of my courses, or you weren't satisfied with the content, then please whack that refund button!
I look forward to seeing you on my courses!