AutoPrefs.

AutoPrefs.Vector4 Class

Summary

An InspectorGadgets.AutoPrefs.AutoPref`1 which encapsulates a UnityEngine.Vector4 value stored in UnityEngine.PlayerPrefs.
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets
Interfaces
Base Types
Derived Types
graph BT Type-->Base0["AutoPrefs.AutoPref<Vector4>"] Base0-->Base1["Object"] Type-.->Interface0["AutoPrefs.IAutoPref"] click Interface0 "/inspector-gadgets/api/InspectorGadgets/IAutoPref" Type["AutoPrefs.Vector4"] class Type type-node Derived0["AutoPrefs.EditorVector4"]-->Type click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor/EditorVector4"

Syntax

public class AutoPrefs.Vector4 : AutoPrefs.AutoPref<Vector4>, AutoPrefs.IAutoPref

Constructors

Name Summary
Vector4(string, Vector4, Action<Vector4>) Constructs a InspectorGadgets.AutoPrefs.Vector4 pref with the specified `key` and `defaultValue`.

Fields

Name Constant Value Summary
KeyW
The key used to identify the w value of this pref.
KeyY
The key used to identify the y value of this pref.
KeyZ
The key used to identify the z 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() Vector4
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.Vector4(string) AutoPrefs.Vector4
implicit operator Color(AutoPrefs.Vector4) Color
implicit operator Vector4(AutoPrefs.AutoPref<Vector4>) Vector4
Inherited from AutoPrefs.AutoPref<Vector4>
operator !=(AutoPrefs.AutoPref<Vector4>, Vector4) bool
Inherited from AutoPrefs.AutoPref<Vector4>
operator ==(AutoPrefs.AutoPref<Vector4>, Vector4) bool
Inherited from AutoPrefs.AutoPref<Vector4>

Extension Methods

Name Value Summary
DoColorGUI(GUIContent) bool
Draws a GUI Color field for an InspectorGadgets.AutoPrefs.Vector4.