From 5bbd5c1bd46ac1b14d4506dce2ea9b00f6365630 Mon Sep 17 00:00:00 2001 From: Makihiro Date: Sun, 27 Oct 2024 19:04:22 +0900 Subject: [PATCH] Fix indent --- .../Editor/SubclassSelectorDrawer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs index e9b9953..f87f59c 100644 --- a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs @@ -39,7 +39,9 @@ namespace MackySoft.SerializeReferenceExtensions.Editor // Render label first to avoid label overlap for lists Rect foldoutLabelRect = new Rect(position); foldoutLabelRect.height = EditorGUIUtility.singleLineHeight; - foldoutLabelRect = EditorGUI.IndentedRect(foldoutLabelRect); + + // NOTE: IndentedRect should be disabled as it causes extra indentation. + //foldoutLabelRect = EditorGUI.IndentedRect(foldoutLabelRect); Rect popupPosition = EditorGUI.PrefixLabel(foldoutLabelRect, label); #if UNITY_2021_3_OR_NEWER