ESave
ESave
ESave
  • ESave Documentation
  • Pro Comparison
  • đŸ•šī¸Getting Started
    • Installation
    • Example Scenes
    • Components
      • Save File Setup
      • Save Storage
  • đŸ“Ŋī¸Videos
    • Tutorial
  • 📄Scripting
    • Saving & Loading
      • Data Management
        • Saving
        • Loading
        • Deleting
        • Writing Changes
      • Custom Serializable Objects
      • Example Script
    • Runtime Save Creation
      • Creating a Save File
      • Infinite Saves
        • Infinite Save Scripting
    • Runtime Save Deletion
    • Understanding Background Save & Load
    • Using the Save Storage
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
  • ⭐Rate Me?
Powered by GitBook
On this page
  1. Scripting
  2. Saving & Loading

Data Management

How to manage save file data.

You may need to code a bit differently if you have background task enabled. See Understanding Background Save & Load

Getting the Save File

The first step to saving data is getting the save file. This can be done by getting the save file setup component first, which will give you access to the save file with SaveFileSetup.GetSaveFile. This can be skipped if you already have a save file reference.

saveFileSetup = GetComponent<SaveFileSetup>();
saveFile = saveFileSetup.GetSaveFile();

It's recommended to use this code in Awake or Start.

PreviousSaving & LoadingNextSaving

Last updated 5 days ago

📄