AutoPrefs.

AutoPrefs.String Class

Summary

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

Syntax

public class AutoPrefs.String : AutoPrefs.AutoPref<string>, AutoPrefs.IAutoPref

Constructors

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

Methods

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

Extension Methods

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