AutoPrefs.

AutoPrefs.EditorVector3 Class

Summary

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

Syntax

public class AutoPrefs.EditorVector3 : AutoPrefs.Vector3, AutoPrefs.IAutoPref

Constructors

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

Fields

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

Properties

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

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() Vector3
Loads the value of this pref from EditorPrefs.
Load() Vector3
Loads the value of this pref from PlayerPrefs.
Inherited from AutoPrefs.Vector3
Save() void
Saves the value of this pref to EditorPrefs.

Operators

Name Value Summary
implicit operator AutoPrefs.EditorVector3(string) AutoPrefs.EditorVector3
implicit operator AutoPrefs.Vector3(string) AutoPrefs.Vector3
Inherited from AutoPrefs.Vector3
implicit operator Color(AutoPrefs.Vector3) Color
Inherited from AutoPrefs.Vector3
implicit operator Vector3(AutoPrefs.AutoPref<Vector3>) Vector3
Inherited from AutoPrefs.AutoPref<Vector3>
operator !=(AutoPrefs.AutoPref<Vector3>, Vector3) bool
Inherited from AutoPrefs.AutoPref<Vector3>
operator ==(AutoPrefs.AutoPref<Vector3>, Vector3) bool
Inherited from AutoPrefs.AutoPref<Vector3>