DataFile.SetBinary
Declaration#
public void SetBinary(string section, string id, Byte[] value)Parameters#
| Name | Description |
|---|---|
| section | Section to set |
| id | Key to set |
| value | Value to set |
Description#
Sets binary value for a key on a specific section
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // You can create your own DataFiles to work with DataFile target = new DataFile();
// Values in a custom DataFile are never saved/loaded by the system // They can be saved/loaded manually target.SetBinary("customSection1", "binary", new byte[] { 1, 240, 37 }); }
}