Skip to main content

DataSection.SetObject

Declaration#

public void SetObject(string name, Object value)

Parameters#

NameDescription
nameKey to set
valueValue to set

Description#

Sets object value for a key

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(object other)    {        // You can create your own DataSections to work with        DataSection target = new DataSection();
        // Values in a custom DataSection are never saved/loaded by the system        // They can be saved/loaded manually        target.SetObject("object", other);    }
}