AutoPrefs.

AutoPrefs.Int Class

Summary

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

Syntax

public class AutoPrefs.Int : AutoPrefs.AutoPref<int>, AutoPrefs.IAutoPref

Constructors

Name Summary
Int(string, int, Action<int>) Constructs an InspectorGadgets.AutoPrefs.Int pref with the specified `key` and `defaultValue`.

Methods

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

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.