Skip to main content

DataSection.Clear

Declaration#

public virtual void Clear()

Description#

Clear all data from section

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 DataFile are never saved/loaded by the system        // They can be saved/loaded manually        target.SetVector3("vector3", new Vector3(1.2f, 3.4f, 5.6f));        target.SetString("string", gameObject.name);
        // You can clear all values        target.Clear();    }
}