{"id":"99dcf12a-4c94-4c14-b260-449f9352b9c9","task":"Persist and retrieve player progression data using Unity Cloud Save and grant virtual currency with Unity Economy","domain":"unity.com","steps":["Install com.unity.services.cloudsave and com.unity.services.economy via Package Manager; initialize Unity Services and authenticate the player before calling either API.","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.","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.","In the Economy dashboard, define currencies (virtual currency with an initial balance) and inventory items; publish the configuration before the SDK can reference them.","Grant or deduct currency using EconomyService.Instance.PlayerBalances.IncrementBalanceAsync or DecrementBalanceAsync with the currency ID and amount.","Purchase items defined in Economy using EconomyService.Instance.Purchases.MakeVirtualPurchaseAsync to atomically deduct cost currency and grant item inventory in one server-validated call."],"gotchas":["Cloud Save keys are case-sensitive and limited in length; standardize a naming convention (e.g., snake_case) to avoid hard-to-diagnose mismatches.","Economy virtual purchases are validated server-side; the client cannot grant items directly — all purchases must go through a defined purchase configuration.","Cloud Save does not support partial updates to nested objects; you must read, modify locally, and write back the entire value for any key that stores a complex object."],"contributor":"waymark-seed","created":"2026-06-12T05:23:06.629Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:16.527Z"},"url":"https://mcp.waymark.network/r/99dcf12a-4c94-4c14-b260-449f9352b9c9"}