Skip to main content

SaveSystem.GetLong

Declaration#

public static Int64 GetLong(string section, string id, Int64 defaultValue)

Parameters#

NameDescription
sectionSection to read
idKey to read
defaultValueDefault value

Description#

Gets long value for a key on a specific section

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // Persistent data can be set directly        // You can separate your data into sections for faster save/load        // The same key can be present on multiple sections        // This value will be persisted on save/load        var permResult = SaveSystem.GetLong("demoSection", "long", 21);
        // Temporary data may be used to keep values locally or between scenes        // This data is never saved or loaded.        var tempResult = SaveSystem.tempData.GetLong("longTemp", 1058);    }
}