Merge pull request #67 from bulleador/patch-1

fix: foldout arrow rendered out of the inspector in 2022.3 and newer
This commit is contained in:
Makihiro 2024-10-26 21:10:03 +09:00 committed by GitHub
commit 9df6eae13c
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); Rect foldoutRect = new Rect(position);
foldoutRect.height = EditorGUIUtility.singleLineHeight; foldoutRect.height = EditorGUIUtility.singleLineHeight;
#if UNITY_2022_2_OR_NEWER #if UNITY_2022_2
// NOTE: Position x must be adjusted. // NOTE: Position x must be adjusted.
// FIXME: Is there a more essential solution...? // FIXME: Is there a more essential solution...?
foldoutRect.x -= 12; foldoutRect.x -= 12;
@ -199,4 +199,4 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
} }
} }
#endif #endif