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.CommonAssembly: Assembly-CSharp-Editor (in Assembly-CSharp-Editor.dll) Version: 0.0.0.0
Syntax
Parameters
- label
- Type: System String
the label for the toggle
- editorPrefsKey
- Type: System String
the (unique) key for the editor prefs to store the state
- def
- Type: System Boolean
the default value
Return Value
See Also