Unity Save & Load Scripts

2 free C# scripts 1 beginner1 intermediate Unity 2022.3+ MIT licensed

Unity gives you two easy places to save data, and these scripts cover both. The PlayerPrefs Save Helper wraps PlayerPrefs with type-safe methods for bools, vectors and colours, which suits settings and small values.

The JSON Save Utility writes any serializable class to a file in Application.persistentDataPath, which suits save games and anything larger. Both are static helpers, so you call them from your own code instead of adding them to a GameObject.

Start with PlayerPrefs Save Helper

Type-safe PlayerPrefs wrapper with support for bool, Vector3, Color, and any serializable object via JSON.

SaveHelper.cs · 0 Inspector fields · beginner

Open PlayerPrefs Save Helper
SaveHelper.cs
Script SaveHelper

No serialized fields. This is a static helper or a base class: you call it from code rather than configure it in the Inspector.

All 2 save & load scripts

Kits that build on them

Guides that use them