Persistent Data – How to Save Your Game States and Settings

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
Putting the Pieces Together for Game Launch
Putting the Pieces Together for Game Launch

Are you an indie developer? In this session, learn about the major development and marketing stages that wi...

Next Session
Fruit Ninja 2 Tech Talk: Creating with Data-Driven Components
Fruit Ninja 2 Tech Talk: Creating with Data-Driven Components

Halfbrick’s lead programmer Andrew McGill explores the tools used to create the fruit-slicing sensation, Fr...