Example #1
0
 public static void DeleteAll()
 {
     EditorPref.ClearAll(true);
 }
Example #2
0
 public static T Build <T>(string name, T fallback = default(T))
 {
     return(EditorPref.Has(name) ? EditorPref.Get <T>(name, fallback) : EditorPref.Set <T>(name, fallback));
 }
Example #3
0
        public static void Toggle(string name, bool fallback = false)
        {
            bool value = !EditorPref.Get(name, fallback);

            EditorPref.Set(name, value);
        }