Skip to main content

DataSection.SetVector2

Declaration#

public void SetVector2(string name, Vector2 value)

Parameters#

NameDescription
nameKey to set
valueValue to set

Description#

Sets vector2 value for a key

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // 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.SetVector2("vector2", new Vector2(1.2f, 3.4f));    }
}