AutoPrefs.

AutoPrefs.Float Class

Summary

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

Syntax

public class AutoPrefs.Float : AutoPrefs.AutoPref<float>, AutoPrefs.IAutoPref

Constructors

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

Methods

Name Value Summary
Load() float
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.Float(string) AutoPrefs.Float
implicit operator float(AutoPrefs.AutoPref<float>) float
Inherited from AutoPrefs.AutoPref<float>
operator !=(AutoPrefs.AutoPref<float>, float) bool
Inherited from AutoPrefs.AutoPref<float>
operator <(AutoPrefs.Float, float) bool
operator ==(AutoPrefs.AutoPref<float>, float) bool
Inherited from AutoPrefs.AutoPref<float>
operator >(AutoPrefs.Float, float) bool

Extension Methods

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