PlayerPrefs

Usage

Use Settings Manager → Game Interfaces → Storage → PlayerPrefs to select the storage type.

When to use?

What it is: Unity’s built‑in, device‑local key–value store.

Good for: Prototypes, offline‑only games, small amounts of non‑sensitive data.

Pros

  • Zero setup; fastest iteration

  • Works entirely offline

Cons

  • Device‑locked (no cross‑device sync)

  • Vulnerable to tampering/clearing by users or OS

  • Not suitable for sensitive values

Implementation

All methods and variables have already been defined in the Storage docs.

Last updated