Merge pull request #78 from mackysoft/fix/indent

Fix indent
This commit is contained in:
Makihiro 2024-10-27 19:18:31 +09:00 committed by GitHub
commit 4ab01edaff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,9 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
// Render label first to avoid label overlap for lists // Render label first to avoid label overlap for lists
Rect foldoutLabelRect = new Rect(position); Rect foldoutLabelRect = new Rect(position);
foldoutLabelRect.height = EditorGUIUtility.singleLineHeight; 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); Rect popupPosition = EditorGUI.PrefixLabel(foldoutLabelRect, label);
#if UNITY_2021_3_OR_NEWER #if UNITY_2021_3_OR_NEWER