Save File Migration
Overview
How Versioning Works
public partial class SaveData
{
public VersionData Version { get; set; }
public SaveData()
: this(SaveManager.Instance?.SaveSettings?.version.Clone() as VersionData
?? new VersionData(1, 0, 0))
{ /* … */ }
}
Components of the Migration System
Versioning Service
Migration Manager
Migration Actions
Example Migration Action
Runtime Migration Flow
Step-by-Step Example: Migrating from Version 1.0 → 2.0
Step 1: Update Save Settings

Step 2: Create or Locate Migration Manager
Step 3: Add a Migration Step

Step 4: Implement Migration Actions

Step 5: Test Loading Old Saves
Best Practices
Last updated