SaveSystem.LoadSection
Declaration#
public static void LoadSection(string section)Parameters#
| Name | Description |
|---|---|
| section | Section to load |
Description#
Load a section from current file
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // You can load a sections from the save file individually // If you have large save files this will help load faster and decrease memory usage SaveSystem.LoadSection("demoSection"); }
}
Declaration#
public static void LoadSection(string section, Action onComplete)Parameters#
| Name | Description |
|---|---|
| section | Section to load |
| onComplete | Action to invoke when load is complete |
Description#
Load a section from current file
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // You can load a sections from the save file individually // If you have large save files this will help load faster and decrease memory usage // You can invoke an action when loading is complete SaveSystem.LoadSection("demoSection", SectionLoaded); }
private void SectionLoaded() { Debug.Log("SaveSystem: Request section is loaded"); }
}