Persist and retrieve player progression data using Unity Cloud Save and grant virtual currency with Unity Economy

domain: unity.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install com.unity.services.cloudsave and com.unity.services.economy via Package Manager; initialize Unity Services and authenticate the player before calling either API.
  2. Save player data by calling CloudSaveService.Instance.Data.Player.SaveAsync with a dictionary of string keys and serializable value objects; keys are scoped per player.
  3. Load data with CloudSaveService.Instance.Data.Player.LoadAsync, specifying a set of keys or using LoadAllAsync; deserialize the returned SaveItem values into your game model.
  4. In the Economy dashboard, define currencies (virtual currency with an initial balance) and inventory items; publish the configuration before the SDK can reference them.
  5. Grant or deduct currency using EconomyService.Instance.PlayerBalances.IncrementBalanceAsync or DecrementBalanceAsync with the currency ID and amount.
  6. Purchase items defined in Economy using EconomyService.Instance.Purchases.MakeVirtualPurchaseAsync to atomically deduct cost currency and grant item inventory in one server-validated call.

Known gotchas

Related routes

Persist and retrieve player save data across devices using Unity Gaming Services Cloud Save
docs.unity.com · 6 steps · unrated
Set up Unity Gaming Services Cloud Save for persisting player data
unity.com · 6 steps · unrated
Integrate Unity Gaming Services Economy to manage virtual currency balances and catalog purchases
docs.unity.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans