/// <summary> /// Call this when editor item is deleted /// </summary> /// <param name="item"></param> public void EditorItemDeleted(EditorItem item, int parentIndex) { if (!Disabled) { EditorDeleteAction action = new EditorDeleteAction(item, parentIndex); actions.Insert(currentActionIndex, action); currentActionIndex++; RemoveNotValidItems(); EditorController.Instance.ProjectSaved = false; } }