Skip to main content

ICustomSaveTarget.DataLoad

Declaration#

public abstract virtual void DataLoad(Stream stream)

Parameters#

NameDescription
streamStream to use

Description#

Method called to load from a stream

Usage#

Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(ICustomSaveTarget target)    {        using (FileStream fs = new FileStream(Path.Combine(Application.persistentDataPath, "testFile.dat"), FileMode.Open, FileAccess.Read))        {            target.DataLoad(fs);        }    }
}