public override void SaveIfNeeded() { if (store.IsDirty(true) || profileDirty) { Save(); } }
public override void SaveIfNeeded() { // Unity overrides the == operator and this will be true if the profile // has been destroyed if (this == null) { return; } // Make sure changes to the store get serialized if (store.IsDirty(true)) { EditorUtility.SetDirty(this); } }