Skip to main content

DataFile.SetVector2

Declaration#

public void SetVector2(string section, string id, Vector2 value)

Parameters#

NameDescription
sectionSection to set
idKey to set
valueValue to set

Description#

Sets vector2 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.SetVector2("customSection1", "vector2", new Vector2(1.2f, 3.4f));    }
}