public void DoToggleablePropertyGroupStatic(Rect position, SerializedProperty enabledProperty, GUIContent content, System.Action action) { enabledProperty.boolValue = EditorGUI.Foldout(position, enabledProperty.boolValue, content, true, ObiEditorUtils.GetBoldToggleStyle()); if (enabledProperty.boolValue) { if (action != null) { EditorGUI.indentLevel++; action(); EditorGUI.indentLevel--; } } }