SaveSystem.SetFloat
Declaration#
public static void SetFloat(string section, string id, float value)Parameters#
| Name | Description |
|---|---|
| section | Section to set |
| id | Key to set |
| value | Value to set |
Description#
Sets float value for a key on a specific section
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // Persistent data can be set directly // You can separate your data into sections for faster save/load // The same key can be present on multiple sections // This value will be persisted on save/load SaveSystem.SetFloat("demoSection", "float", 3.14f);
// Temporary data may be used to keep values locally or between scenes // This data is never saved or loaded. SaveSystem.tempData.SetFloat("floatTemp", 7.09f); }
}