PlayerPreferenceValue<T>
An abstract class in Alta.IO, the global namespace.
Base for a typed value stored in PlayerPreferences (the local player.prefs file) under one key.
- Listed in Other Alta assemblies
- Inherits or implements
IPlayerPreferenceValue<T> - Derived types
PlayerPreferenceBool,PlayerPreferenceFloat,PlayerPreferenceInt,PlayerPreferenceString
Constructors
| Member | What it is |
|---|---|
protected PlayerPreferenceValue(string key, Action<string, T> setter, Func<string, T, T> getter) | Creates a PlayerPreferenceValue from key, setter and getter. |
Fields
3 private and internal fields
Properties
| Member | What it is |
|---|---|
T Value { get; set; } | Reads the stored value (default if missing) or writes a new one. |
Methods
| Member | What it is |
|---|---|
static T op_Implicit(PlayerPreferenceValue<T> value) | Lets the preference be used directly as its value. |