What problem does it solve?
This Skill provides a production-ready save and load system for Unity projects that ensures game state is persisted reliably, protected with strong encryption, validated with checksums, and migrated across versions to avoid data loss and corruption during updates.
Core Features & Use Cases
- Efficient binary serialization with fallbacks: MessagePack with LZ4 compression and a JSON fallback for compatibility.
- Strong encryption and integrity checks: AES-256 encryption, PBKDF2 key derivation, and SHA256 checksums to detect tampering or corruption.
- Versioning and migration pipeline: Register sequential migrations to transform legacy saves to the current schema safely.
- Cloud synchronization and conflict resolution: Optional cloud upload/download, conflict events, and resolution strategies (use cloud, use local, most recent, keep both).
- Reactive key-value storage and autosave: Observe keys reactively, mark dirty on changes, and configurable autosave intervals with backups.
- Installer and DI integration: Easy registration into Unity DI containers for singleton services and related dependencies.
Quick Start
Call the save service to set the player's data key, then invoke save to write an encrypted, versioned backup and trigger cloud sync if available.