
Explore the basics of serialization and data persistence in Unity, including theory, saving games with player prefs, using streams to disk, and the binary formatter for binary files.
Explore how to save a don't get angry board game state in Unity by practicing serialization; decide what to save, compare readable and compact encodings, and optimize memory and performance.
Define data persistence and serialization in Unity, explain saving between levels and across sessions, compare readable and unreadable save files, and introduce the simplest Unity save method.
Explore Unity's playerprefs to persist simple data across sessions by saving and loading key-value pairs, with notes on when not to use it for complex data.
Assess why Unity's PlayerPrefs are problematic, as an ancient, registry-based storage on Windows with limited types (floats, ints, strings), and learn why a stream writer offers a better save approach.
Discover saving and loading game data in Unity with stream writers and readers. Use the persistent data path, write and read lines, and remember to close streams.
Learn data persistence and serialization in Unity by converting game state to text and saving it with player press, stream writer, or nested classes with binary form.
Explore advanced data persistence in unity using json serialization, json.net, and unity tools. Learn automatic json file creation from classes, combining objects into a single save file, and encrypting saves.
You can find the Link to CodeBeautify.org in the Resources.
Download the Git-Package from: com.unity.nuget.newtonsoft-json
Learn how JsonUtility serializes public variables in Unity and how nested classes control what gets saved. Apply the two load methods—new instance or overriding—while understanding references and runtime-created objects.
Learn to control save data in Unity by using JsonUtility nested classes to serialize a safe data nested class containing hp, name, and age.
Combine multiple game objects into a single safe game by using a safe game manager that serializes each enemy and writes the combined string to disk in Unity.
Serialize each enemy, combine serialized data into a single json object with the save game manager, then save and load multiple enemies by name, optionally using a serialization interface.
Use interfaces to build a scalable save system with a save game manager, collecting objects that implement a serializable interface, each providing serialize, deserialize, and a unique key.
Explain the aes encryption basics for local save games, including encryption keys and initialization vector, and why hard coding the key weakens security.
learn to implement aes encryption for safe game data in Unity, including encrypting and decrypting strings, using memory streams, crypto streams, and file operations to securely save and load games.
If you ever wondered how to create savegames in unity then this course is for you!
The "The ultimate Guide to Creating Savegames in Unity" will teach you best practices for the most basic savegame-solutions like PlayerPrefs, but we will also handle some more advanced topics like Json and Encryption.
In this course you will:
Save and load the Gamestate
Save/Load simple Data with Playerprefs
Create your own Save-Files with Streamwriter
Create unreadable Savegames with Binaryformatter
Create advanced up- and downward-compatible Savegame-Solutions with Json
Encrypt your Savegames
This course is very project-based and practical, so you will implement the concepts directly in exercises.
For each Concept you will be challenged to implement it yourself, but if you don't feel up to the task you will also be shown a well explained step-by-step guide how to implement it.
The course also features several Demo-Projects, where you can look up best practice implementations.
Why learn from me?
I have been teaching game-programming for more than 5 years now and as a result I have plenty of experience in what works and what doesn't when it comes to teaching programming. Also I am a firm believer, that you can only learn the high craft (some might even say art) of programming, by practicing it.
Who is the target Audience?
Unity Developers who want to create Simple Savegames
Unity Developers who want to create more sophisticated encrypted Savegames
Programmers who want to improve their Skills in the Unity3D - Engine
Become a better Programmer, now! I'll meet you inside the course!