Skip to main content

DataSection.GetVector2

Declaration#

public Vector2 GetVector2(string name, Vector2 defaultValue)

Parameters#

NameDescription
nameKey to read
defaultValueDefault value

Description#

Gets 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        var result = target.GetVector2("vector2", Vector2.zero);    }
}