public override void OnInspectorGUI() { bool added = false; bool removed = false; serializedObject.Update(); removed = ListDictionary(); added = DrawAddField(); serializedObject.ApplyModifiedProperties(); if (added || removed) { store.Dirty(); } }