Add using CSS; at the top of your script. The calls below go inside your methods. If you use assembly definitions, reference CompleteSave. Hover over methods in your editor for the included API documentation.

Save and load

CallUse it to
await SaveSystem.SaveAsync()Write current data to storage and check the returned SaveResult.
await SaveSystem.LoadAsync()Read and validate saved data before using it.
await SaveSystem.EnsureLoadedAsync()Share one initial load between startup scripts.
SaveSystem.IsDirtyCheck whether memory has changes waiting to be saved.
SaveSystem.IsBusyCheck whether work is in progress.
SaveSystem.GetSavePath()Find the active save file.

See saving and loading for complete usage and result handling.

More persistence options

SaveAsync and LoadAsync accept an optional CancellationToken and return Task<SaveResult>. LastResult holds the latest result; Config exposes the configuration asset.

Save() and Load() are existing void adapters. Use completion events to know when asynchronous work ends.

Reset() and SetupParams() reset/reconfigure backend state. Reset after changing configured paths. ClearSaveData(bool removeSaveFile = false) clears memory and can delete stored save generations; use deletion only for an intentional reset.

Read and change values

SaveSystem.Set("coins", 250);
int coins = SaveSystem.Get("coins", 0);
bool found = SaveSystem.TryGet<int>("coins", out int value);
bool exists = SaveSystem.Exists("coins");
bool removed = SaveSystem.Remove("coins");
var keys = SaveSystem.GetKeys();

These calls work in memory. Call SaveAsync() to keep changes after the game closes.

Typed keys and existing Transform methods
var typedKey = new SaveKey<int>("coins");
SaveSystem.Set(typedKey, 250);
int coins = SaveSystem.Get(typedKey, 0);

SaveObject(key, UnityEngine.Object) captures supported Unity objects, including Transform snapshots. Load(key, target) applies a saved Transform snapshot to an existing Transform. Check supported types first.

Manage save slots

Member on SaveSystemUse it to
CreateProfile(name)Add a slot.
SetCurrentProfile(name)Select the profile used by key/value calls.
GetAvailableProfiles()List profiles.
ProfileExists(name)Check whether a name exists.
CopyProfile(source, destination)Copy to an unused profile name.
RenameProfile(source, destination)Change a profile's name.
DeleteProfile(name)Remove a profile.

See profiles and settings for usage.

Profile metadata and preview images

CurrentProfileName and AvailableProfiles expose profile information. Use GetProfileMetadata(profile) and SetProfileMetadata(profile, metadata) for metadata.

Use SetProfileScreenshot(texture) or SetProfileScreenshot(profile, texture) to attach a preview. Read it with LoadProfileScreenshot(profile), release the texture with UnloadProfileScreenshot(profile), or remove it with ClearProfileScreenshot(profile).

Store player preferences

SaveSystem.SetSetting("audio.volume", 0.75f);
SaveResult result = await SaveSystem.SaveSettingsAsync();
float volume = SaveSystem.GetSetting("audio.volume", 1f);

Settings are separate from profile progress.

More settings methods

SaveSettingsAsync(token) accepts cancellation. SaveSettings() and LoadSettings() are existing entry points. Inspect LastSettingsResult and find the file with GetSettingsPath().

Use GetSettingKeys(), DeleteSetting(key), and ClearSettings(deleteSettingsFile) to manage preferences.

Create or restore a backup

Call on SaveSystemWhat it does
CreateBackup()Creates a recovery copy; returns SaveResult.
GetBackups()Lists stored backup paths.
RestoreBackup(1)Restores the newest backup; returns SaveResult. Load afterward to apply it.

See backups and recovery before building a restore menu.

Listen for completion

Use events when working with the existing void methods or login flow. Subscribe when your component is enabled and unsubscribe when it is disabled.

private void OnEnable() => SaveSystem.OnSaveEndEvent += Saved;
private void OnDisable() => SaveSystem.OnSaveEndEvent -= Saved;
private void Saved(bool success) => UnityEngine.Debug.Log("Saved: " + success);
Available start and end events
OperationStartEnd
SaveOnSaveStartEventOnSaveEndEvent
LoadOnLoadStartEventOnLoadEndEvent
Cloud syncOnCloudStartOnCloudEnd
LoginOnLoginStartOnLoginEnd

Start handlers have no parameter. End handlers receive a bool indicating success.

Synchronize between devices

Connect through CSS.Web.CloudSaveManager, then call await SaveSystem.CloudSyncAsync(). Check its SaveResult. See cloud synchronization for the connection steps and conflict behavior.

Other cloud entry points

CloudSyncAsync(CancellationToken = default) returns Task<SaveResult>. CloudSync() is the existing void adapter.

Work with CSV data

Spreadsheet helper methods

ImportSpreadsheetCsv(key, csv) and ExportSpreadsheetCsv(key) read/write CSV text. SetSpreadsheet(key, data) and GetSpreadsheet(key) store spreadsheet data under a profile key.

SaveSpreadsheet provides column-first SetCell/GetCell<T>, CSV Load/Save, and row/column counts.

Customize saving

Use automatic field sync for attributed fields, or custom save behavior for your own data and storage providers.

Advanced interfaces and low-level calls

[StorageSync("id")] connects a field to profile memory. Explicit control uses StorageSynchronization.Register(target), Synchronize(), RestoreFromMemory(), and Unregister(target, capture). StorageSyncRuntime.AutomaticDiscovery controls scene discovery.

SaveServices exposes ISaveStorage, ISaveSerializer, ICloudSaveProvider, SchemaVersion, and Migrations. Other extension points include ISaveable<TState>, ISaveMigration, SaveTypeRegistry, and JsonSaveSerializer.AddConverter.

GetParsedProfileData(), ValidateLoadedData(data), and ApplyLoadedData(data) expose low-level profile container operations. Use the validated save/load methods for ordinary integration.