Fix indent

This commit is contained in:
Makihiro 2024-10-27 19:04:22 +09:00
parent d47e8e5601
commit 5bbd5c1bd4

View File

@ -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