EditorPrefs.GetBoolstatic function GetBool (key : string, defaultValue : bool = false) : boolDescriptionReturns 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"));
|
