Skip to content

Commit 4ab01ed

Browse files
authored
Merge pull request #78 from mackysoft/fix/indent
Fix indent
2 parents d47e8e5 + 5bbd5c1 commit 4ab01ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public override void OnGUI (Rect position, SerializedProperty property, GUIConte
3939
// Render label first to avoid label overlap for lists
4040
Rect foldoutLabelRect = new Rect(position);
4141
foldoutLabelRect.height = EditorGUIUtility.singleLineHeight;
42-
foldoutLabelRect = EditorGUI.IndentedRect(foldoutLabelRect);
42+
43+
// NOTE: IndentedRect should be disabled as it causes extra indentation.
44+
//foldoutLabelRect = EditorGUI.IndentedRect(foldoutLabelRect);
4345
Rect popupPosition = EditorGUI.PrefixLabel(foldoutLabelRect, label);
4446

4547
#if UNITY_2021_3_OR_NEWER

0 commit comments

Comments
 (0)