public static string[] GetStringArray(string key) { if (PsdLayerPrefs.HasKey(key)) { return(PsdLayerPrefs.GetString(key).Split("\n"[0])); } return(new string[0]); }
public static string[] GetStringArray(string key, char separator) { if (PsdLayerPrefs.HasKey(key)) { return(PsdLayerPrefs.GetString(key).Split(separator)); } return(new string[0]); }
public static string[] GetStringArray(string key, char separator, string defaultValue, int defaultSize) { if (PsdLayerPrefs.HasKey(key)) { return(PsdLayerPrefs.GetString(key).Split(separator)); } var strings = new string[defaultSize]; for (int i = 0; i < defaultSize; i++) { strings[i] = defaultValue; } return(strings); }