DataSection.GetVector3
Declaration#
public Vector3 GetVector3(string name, Vector3 defaultValue)Parameters#
| Name | Description |
|---|---|
| name | Key to read |
| defaultValue | Default value |
Description#
Gets vector3 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.GetVector3("vector3", Vector3.zero); }
}