ICustomSaveTarget.DataLoad
#
Declarationpublic abstract virtual void DataLoad(Stream stream)
#
ParametersName | Description |
---|---|
stream | Stream to use |
#
DescriptionMethod called to load from a stream
#
UsageExample
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); } }
}