public static void ToggleEditorEnable(this Object editor) { if (editor != null) { editor.SetEditorEnable(!editor.GetEditorEnable()); } }