fix: foldout arrow rendered out of the inspector in 2022.3 and newer

This commit is contained in:
Bullet 2024-09-07 15:29:21 +02:00 committed by GitHub
parent b7d76fb0c5
commit 71fa059b0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
Rect foldoutRect = new Rect(position);
foldoutRect.height = EditorGUIUtility.singleLineHeight;
#if UNITY_2022_2_OR_NEWER
#if UNITY_2022_2
// NOTE: Position x must be adjusted.
// FIXME: Is there a more essential solution...?
foldoutRect.x -= 12;
@ -205,4 +205,4 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
}
}
#endif
#endif