Summary
An
InspectorGadgets.AutoPrefs.AutoPref`1
which encapsulates a UnityEngine.Vector2
value stored in
UnityEngine.PlayerPrefs
.
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
- Interfaces
- Base Types
-
- Object
- AutoPrefs
.AutoPref <Vector2>
- Derived Types
graph BT
Type-->Base0["AutoPrefs.AutoPref<Vector2>"]
Base0-->Base1["Object"]
Type-.->Interface0["AutoPrefs.IAutoPref"]
click Interface0 "/inspector-gadgets/api/InspectorGadgets/IAutoPref"
Type["AutoPrefs.Vector2"]
class Type type-node
Derived0["AutoPrefs.EditorVector2"]-->Type
click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor/EditorVector2"
Syntax
public class AutoPrefs.Vector2 : AutoPrefs.AutoPref<Vector2>, AutoPrefs.IAutoPref
Constructors
Name | Summary |
---|---|
Vector2 |
Constructs a InspectorGadgets.AutoPrefs.Vector2 pref with the specified `key` and `defaultValue`. |
Fields
Name | Constant Value | Summary |
---|---|---|
KeyY |
The key used to identify the y value of this pref.
|
Properties
Name | Value | Summary |
---|---|---|
KeyX | string |
The key used to identify the x value of this pref.
|
Methods
Name | Value | Summary |
---|---|---|
DeletePref |
void |
Deletes the value of this pref from
UnityEngine.PlayerPrefs and reverts to the default value. |
IsSaved |
bool |
Returns true if
UnityEngine.PlayerPrefs currently contains a value for this pref. |
Load |
Vector2 |
Loads the value of this pref from
UnityEngine.PlayerPrefs . |
Save |
void |
Saves the value of this pref to
UnityEngine.PlayerPrefs . |
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
AutoPrefs |
|
implicit operator |
Vector2 |
Inherited from AutoPrefs
|
operator != |
bool |
Inherited from AutoPrefs
|
operator == |
bool |
Inherited from AutoPrefs
|