SaveSystem.Clear
Declaration#
public static void Clear()Description#
Clears data from all sections
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // Persistent data can be set directly // You can separate your data into sections for faster save/load // The same key can be present on multiple sections // This value will be persisted on save/load SaveSystem.Clear();
// Temporary data may be used to keep values locally or between scenes // This data is never saved or loaded. SaveSystem.tempData.Clear(); }
}
Declaration#
public static void Clear(string section)Parameters#
| Name | Description |
|---|---|
| section | Section to unload |
Description#
Clears data from a specified section
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // Persistent data can be set directly // You can separate your data into sections for faster save/load // The same key can be present on multiple sections // This value will be persisted on save/load SaveSystem.Clear("demoSection"); }
}