private void OnEnable() { // Load saved prefs if (EditorPrefs.HasKey(SAVE)) { var save = EditorPrefsX.GetStringArray(SAVE); filename = save[0]; supersize = int.Parse(save[1]); } }
private void OnDisable() { // Save prefs EditorPrefsX.SetStringArray(SAVE, new string[] { filename, supersize.ToString() }); }