SaveSystem.SaveSection
Declaration#
public static void SaveSection(string section)Parameters#
| Name | Description |
|---|---|
| section | Section 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#
| Name | Description |
|---|---|
| section | Section to save |
| onComplete | Action 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"); }
}