Skip to main content

SaveSystem.LoadSceneData

Declaration#

public static void LoadSceneData()

Description#

Load existing data into current scene

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // Once you've loaded the complete file (or section you want)        // You can load data from memory to the scene        // Doing so will create/destory/update objects as needed        SaveSystem.LoadSceneData();    }
}

Declaration#

public static void LoadSceneData(Action onComplete)

Parameters#

NameDescription
onCompleteAction to invoke when load is complete

Description#

Load existing data into current scene

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // Once you've loaded the complete file (or section you want)        // You can load data from memory to the scene        // Doing so will create/destory/update objects as needed        // You can invoke an action after the load is complete        SaveSystem.LoadSceneData(SceneLoadComplete);    }
    private void SceneLoadComplete()    {        Debug.Log("SaveSystem: Scene has been updated with saved data");    }
}