AutoPrefs Class

Summary

[Editor-Only] A collection of wrappers for EditorPrefs which simplify the way you can store and retrieve values.
graph BT Type-->Base0["Object"] Type["AutoPrefs"] class Type type-node

Syntax

public static class AutoPrefs

Remarks

PlayerPrefs versions can be found in InspectorGadgets.AutoPrefs

Methods

Name Value Summary
DoColorGUI(AutoPrefs.Vector4, GUIContent) bool
Draws a GUI Color field for an InspectorGadgets.AutoPrefs.Vector4.
static
DoGUI(AutoPrefs.Bool, GUIContent) bool
Draws a GUI field for an InspectorGadgets.AutoPrefs.Bool.
static
DoGUI(AutoPrefs.Float, GUIContent) bool
Draws a GUI field for an InspectorGadgets.AutoPrefs.Float.
static
DoGUI(AutoPrefs.Int, GUIContent) bool
Draws a GUI field for an InspectorGadgets.AutoPrefs.Int.
static
DoGUI<T>(AutoPrefs.AutoPref<T>, GUIContent, AutoPrefs.GUIFieldMethod<T>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.
static
DoGUI<T>(AutoPrefs.AutoPref<T>, GUIContent, GUIStyle, AutoPrefs.GUIFieldMethod<T>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.
static
DoGUI<T>(AutoPrefs.AutoPref<T>, Rect, GUIContent, GUIStyle, AutoPrefs.GUIFieldMethod<T>) bool
[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.
static
GetControlRect() Rect
Uses UnityEditor.EditorGUILayout.GetControlRect(System.Boolean,System.Single,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[]) to allocate a UnityEngine.GUILayout UnityEngine.Rect for a control.
static