AutoPrefs.

AutoPrefs.EditorQuaternion Class

Summary

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

Syntax

public class AutoPrefs.EditorQuaternion : AutoPrefs.Quaternion, AutoPrefs.IAutoPref

Constructors

Name Summary
EditorQuaternion(string) Constructs a Quaternion pref with the specified `key` and Quaternion.identity as the default value.
EditorQuaternion(string, Quaternion, Action<Quaternion>) Constructs a Quaternion pref with the specified `key` and `defaultValue`.

Fields

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

Properties

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

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

Operators

Name Value Summary
implicit operator AutoPrefs.EditorQuaternion(string) AutoPrefs.EditorQuaternion
implicit operator AutoPrefs.Quaternion(string) AutoPrefs.Quaternion
Inherited from AutoPrefs.Quaternion
implicit operator Quaternion(AutoPrefs.AutoPref<Quaternion>) Quaternion
Inherited from AutoPrefs.AutoPref<Quaternion>
operator !=(AutoPrefs.AutoPref<Quaternion>, Quaternion) bool
Inherited from AutoPrefs.AutoPref<Quaternion>
operator ==(AutoPrefs.AutoPref<Quaternion>, Quaternion) bool
Inherited from AutoPrefs.AutoPref<Quaternion>