Exemplo n.º 1
0
 public static void      DeleteKey(string key, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     EditorPrefs.DeleteKey(key);
 }
Exemplo n.º 2
0
 public static bool      HasKey(string key, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     return(EditorPrefs.HasKey(key));
 }
Exemplo n.º 3
0
 public static void              SetString(string key, string value, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     EditorPrefs.SetString(key, value);
 }
Exemplo n.º 4
0
 public static string    GetString(string key, string defaultValue = "", bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     return(EditorPrefs.GetString(key, defaultValue));
 }
Exemplo n.º 5
0
 public static float             GetFloat(string key, float defaultValue = 0F, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     return(EditorPrefs.GetFloat(key, defaultValue));
 }
Exemplo n.º 6
0
 public static int               GetInt(string key, int defaultValue = 0, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     return(EditorPrefs.GetInt(key, defaultValue));
 }
Exemplo n.º 7
0
 public static bool              GetBool(string key, bool defaultValue = false, bool perProject = false)
 {
     if (perProject == true)
     {
         key = NGEditorPrefs.GetPerProjectPrefix() + key;
     }
     return(EditorPrefs.GetBool(key, defaultValue));
 }