Skip to main content

SaveSystem.SaveSection

Declaration#

public static void SaveSection(string section)

Parameters#

NameDescription
sectionSection to save

Description#

Save section to default file

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // .SaveSection will save a single section to disk        // Other already saved sections will remain unmodified on disk        SaveSystem.SaveSection("demoSection");    }
}

Declaration#

public static void SaveSection(string section, Action onComplete)

Parameters#

NameDescription
sectionSection to save
onCompleteAction to invoke when save is complete

Description#

Save section to default file

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // .SaveSection will save a single section to disk        // Other already saved sections will remain unmodified on disk        // You can invoke an action when saving is complete        SaveSystem.SaveSection("demoSection", SectionSaveComplete);    }
    private void SectionSaveComplete()    {        Debug.Log("SaveSystem: Requested section has been saved");    }
}