private void DrawCurrentEditor() { GUILayout.BeginArea(new Rect(SideBarWidth, 0, Screen.width - SideBarWidth, Screen.height), areaStyle); if (currentEditor != null && currentEditor.target != null) { currentEditor.OnInspectorGUI(); GUILayout.Space(EditorGUIUtility.singleLineHeight); EditorGUI.BeginChangeCheck(); currentProfile.WildcardQuery = EditorGUILayout.TextField("Wildcard Query", currentProfile.WildcardQuery); if (EditorGUI.EndChangeCheck()) { currentProfile.Apply(); } } else { UpdateProfiles(); } GUILayout.EndArea(); }