EditorGUIExtensions PersistentToggle Method STUUI API Documentation V1.0.0
Draws a persistent toggle which is used e.g. for switching between the default inspector and my custom inspector or whether play mode changes shall be persisted. This automatically stores its state to the editor prefs so that it remembers its state between Unity sessions. Do not use in your scripts because it uses editor prefs in a specific namespace that only I am allowed to use ;-) don't blame me if you use it and the Universe collapses - you have been warned!

Namespace: NarayanaGames.UnityEditor.Common
Assembly: Assembly-CSharp-Editor (in Assembly-CSharp-Editor.dll) Version: 0.0.0.0
Syntax

public static bool PersistentToggle(
	string label,
	string editorPrefsKey,
	bool def
)

Return Value

See Also