ModifierKeysPref Class

Summary

[Editor-Only] An InspectorGadgets.Editor.AutoPrefs.EditorInt which wraps InspectorGadgets.Editor.ModifierKey flags.
graph BT Type-->Base0["AutoPrefs.EditorInt"] click Base0 "/inspector-gadgets/api/InspectorGadgets.Editor/EditorInt" Base0-->Base1["AutoPrefs.Int"] click Base1 "/inspector-gadgets/api/InspectorGadgets/Int" Base1-->Base2["AutoPrefs.AutoPref<int>"] Base2-->Base3["Object"] Type-.->Interface0["AutoPrefs.IAutoPref"] click Interface0 "/inspector-gadgets/api/InspectorGadgets/IAutoPref" Type["ModifierKeysPref"] class Type type-node

Syntax

public class ModifierKeysPref : AutoPrefs.EditorInt, AutoPrefs.IAutoPref

Constructors

Properties

Name Value Summary
AreKeysCurrentlyDown bool
Are all modifiers in the InspectorGadgets.Editor.ModifierKeysPref.Value currently being held down?
Value ModifierKey
The current value of this pref.

Methods

Name Value Summary
AreKeysDown(Event) bool
Are all modifiers in the InspectorGadgets.Editor.ModifierKeysPref.Value being held down in the `currentEvent`?
DeletePref() void
Deletes the value of this pref from UnityEditor.EditorPrefs and reverts to the default value.
Inherited from AutoPrefs.EditorInt
DoGUI(GUIContent) bool
IsSaved() bool
Returns true if UnityEditor.EditorPrefs currently contains a value for this pref.
Inherited from AutoPrefs.EditorInt
Load() int
Loads the value of this pref from UnityEditor.EditorPrefs.
Inherited from AutoPrefs.EditorInt
Save() void
Saves the value of this pref to UnityEditor.EditorPrefs.
Inherited from AutoPrefs.EditorInt
ValueContains(ModifierKey) bool
Does the InspectorGadgets.Editor.ModifierKeysPref.Value contain the `modifier`?

Operators

Name Value Summary
implicit operator AutoPrefs.EditorInt(string) AutoPrefs.EditorInt
Inherited from AutoPrefs.EditorInt
implicit operator AutoPrefs.Int(string) AutoPrefs.Int
Inherited from AutoPrefs.Int
implicit operator int(AutoPrefs.AutoPref<int>) int
Inherited from AutoPrefs.AutoPref<int>
implicit operator ModifierKey(ModifierKeysPref) ModifierKey
operator !=(AutoPrefs.AutoPref<int>, int) bool
Inherited from AutoPrefs.AutoPref<int>
operator <(AutoPrefs.EditorInt, int) bool
Inherited from AutoPrefs.EditorInt
operator <(AutoPrefs.Int, int) bool
Inherited from AutoPrefs.Int
operator ==(AutoPrefs.AutoPref<int>, int) bool
Inherited from AutoPrefs.AutoPref<int>
operator >(AutoPrefs.EditorInt, int) bool
Inherited from AutoPrefs.EditorInt
operator >(AutoPrefs.Int, int) bool
Inherited from AutoPrefs.Int

Extension Methods

Name Value Summary
DoGUI(GUIContent) bool
Draws a GUI field for an InspectorGadgets.AutoPrefs.Int.
DoGUI<int>(GUIContent, AutoPrefs.GUIFieldMethod<int>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.
DoGUI<int>(GUIContent, GUIStyle, AutoPrefs.GUIFieldMethod<int>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.
DoGUI<int>(Rect, GUIContent, GUIStyle, AutoPrefs.GUIFieldMethod<int>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.