Persistent Data – How to Save Your Game States and Settings

October 28, 2020

Saving data is critical for any game. Whether you need to save high scores, preferences, or game state, Unity offers a variety of methods – from PlayerPrefs to serializing data, encrypting it, and writing to a file. In this session, we share some valuable tips on creating data persistence in Unity.

Learn more about serialization.

Example scripts.

Easy Save on the Unity Asset Store.

JSON .NET on the Unity Asset Store.

Did you find this session useful? Room for improvement?
Take our survey here!

Meet our hosts
Bronson Zgeb Sr. Content Developer

Bronson worked as a game developer for 10 years before joining Unity in 2020 as a content developer. Previously, he cofounded the studio KO_OP and worked at Square Enix Montreal. As a developer, he specializes in game-feel, code architecture, graphics and workflow. He loves teaching and feels fulfilled by supporting creators to build their projects and reach their goals.

Previous Session
Capturing Profiler Stats at Runtime
Capturing Profiler Stats at Runtime

Learn how to get precise performance metrics when your project runs on the target device. In this session w...

Next Article
Test your code with the Unity Test Framework
Test your code with the Unity Test Framework

Run automated tests in-editor and per platform with the Unity Test Framework.