Class VariablesSaver
Listens to the OnApplicationQuit on OnApplicationPause hooks to trigger the serialization of saved variables into PlayerPrefs.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.VisualScripting
Syntax
[Singleton(Name = "Variables Saver", Automatic = true, Persistent = true)]
[AddComponentMenu("")]
[IncludeInSettings(false)]
public class VariablesSaver : MonoBehaviour, ISingleton
Properties
instance
Declaration
public static VariablesSaver instance { get; }
Property Value
Type | Description |
---|---|
VariablesSaver |
Methods
Instantiate()
Declaration
public static void Instantiate()