1

Local Save in Unity (SERIALIZATION) – Save Game, Variables, Levels

Saving and loading your game in Unity is not hard at all if you know the right way to do it. When you use binary serialization in C# you have already won half of the battle.

 

GameData.cs

 

SaveScript.cs

 

Save.cs

 

Matt Rešetár
 

Matt is an app developer with a knack for teaching others. Working as a senior software developer at HandCash, freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪 and guitar 🎸

  • Edward says:

    Good tutorial, and thank you very much!

  • >