EditorPrefs.GetBool Manual     Reference     Scripting  
Scripting > Editor Classes > EditorPrefs
EditorPrefs.GetBool

static function GetBool (key : string, defaultValue : bool = false) : bool

Description

Returns the value corresponding to key in the preference file if it exists.

If it doesn't exist, it will return defaultValue.

print (EditorPrefs.GetBool("My Pref Value"));