Struct EditorPrefBool
Bool saved in EditorPref.
Namespace: UnityEditor.Rendering
Syntax
public struct EditorPrefBool
Constructors
EditorPrefBool(String, Boolean)
Constructor
Declaration
public EditorPrefBool(string key, bool defaultValue = false)
Parameters
Type | Name | Description |
---|---|---|
String | key | Key in the editor preferences. |
Boolean | defaultValue | Default value of the preference. |
Properties
value
Value of the boolean in editor preferences.
Declaration
public bool value { get; set; }
Property Value
Type | Description |
---|---|
Boolean |