private void OnEnable() { UnityEngine.Debug.Log(ComponentUtils.GetProjectName()); var data = EditorPrefs.GetString(ComponentUtils.GetProjectName(), JsonUtility.ToJson(this, false)); JsonUtility.FromJsonOverwrite(data, this); }
private void OnDisable() { var data = JsonUtility.ToJson(this, false); EditorPrefs.SetString(ComponentUtils.GetProjectName(), data); }