Class PersistentSingleton<T>
Persistent singleton used to save settings data
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEditor.Industrial.Configuring.UI
Syntax
public class PersistentSingleton<T> : ScriptableObject where T : ScriptableObject
Type Parameters
Name | Description |
---|---|
T | Scriptable object type |
Constructors
PersistentSingleton()
On domain reload ScriptableObject objects gets reconstructed from a backup. We therefore set the s_Instance here
Declaration
protected PersistentSingleton()
Properties
instance
Gets the instance.
Declaration
public static T instance { get; }
Property Value
Type | Description |
---|---|
T | The instance. |
Methods
Save()
Saves this instance.
Declaration
public virtual void Save()
Save(Boolean)
Saves the specified save as text.
Declaration
public virtual void Save(bool saveAsText)
Parameters
Type | Name | Description |
---|---|---|
Boolean | saveAsText | if set to |