SaveTarget.Save
Declaration#
public virtual void Save(Stream stream)Parameters#
| Name | Description |
|---|---|
| stream | Stream to use |
Description#
Save object data
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(SaveTarget target) { target.Save(); }
}
Declaration#
public virtual void Save()Description#
Save object data
Usage#
Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(SaveTarget target) { // You can save directly to a stream if needed using (MemoryStream ms = new MemoryStream()) { target.Save(ms); } }
}