AutoPrefs.

AutoPrefs.EditorVector4 Class

Summary

[Editor-Only] An InspectorGadgets.AutoPrefs.AutoPref`1 which encapsulates a Vector4 value stored in EditorPrefs.
graph BT Type-->Base0["AutoPrefs.Vector4"] click Base0 "/inspector-gadgets/api/InspectorGadgets/Vector4" Base0-->Base1["AutoPrefs.AutoPref<Vector4>"] Base1-->Base2["Object"] Type-.->Interface0["AutoPrefs.IAutoPref"] click Interface0 "/inspector-gadgets/api/InspectorGadgets/IAutoPref" Type["AutoPrefs.EditorVector4"] class Type type-node

Syntax

public class AutoPrefs.EditorVector4 : AutoPrefs.Vector4, AutoPrefs.IAutoPref

Constructors

Name Summary
EditorVector4(string, Vector4, Action<Vector4>) Constructs an InspectorGadgets.Editor.AutoPrefs.EditorVector4 pref.

Fields

Name Constant Value Summary
KeyW
The key used to identify the w value of this pref.
Inherited from AutoPrefs.Vector4
KeyY
The key used to identify the y value of this pref.
Inherited from AutoPrefs.Vector4
KeyZ
The key used to identify the z value of this pref.
Inherited from AutoPrefs.Vector4

Properties

Name Value Summary
KeyX string
The key used to identify the x value of this pref.
Inherited from AutoPrefs.Vector4

Methods

Name Value Summary
DeletePref() void
Deletes the value of this pref from EditorPrefs and reverts to the default value.
IsSaved() bool
Returns true if EditorPrefs currently contains a value for this pref.
Load() Vector4
Loads the value of this pref from EditorPrefs.
Load() Vector4
Loads the value of this pref from PlayerPrefs.
Inherited from AutoPrefs.Vector4
Save() void
Saves the value of this pref to EditorPrefs.

Operators

Name Value Summary
implicit operator AutoPrefs.EditorVector4(string) AutoPrefs.EditorVector4
implicit operator AutoPrefs.Vector4(string) AutoPrefs.Vector4
Inherited from AutoPrefs.Vector4
implicit operator Color(AutoPrefs.Vector4) Color
Inherited from AutoPrefs.Vector4
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.