Skip to main content

SaveSystem.SetQuaternion

Declaration#

public static void SetQuaternion(string section, string id, Quaternion value)

Parameters#

NameDescription
sectionSection to set
idKey to set
valueValue to set

Description#

Sets quaternion 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        SaveSystem.SetQuaternion("demoSection", "quaternion", new Quaternion(1.2f, 3.4f, 5.6f, 7.8f));
        // Temporary data may be used to keep values locally or between scenes        // This data is never saved or loaded.        SaveSystem.tempData.SetQuaternion("quaternionTemp", new Quaternion(9.0f, 10.1f, 11.2f, 12.3f));    }
}