fix: foldout arrow rendered out of the inspector in 2022.3 and newer
This commit is contained in:
parent
b7d76fb0c5
commit
71fa059b0c
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user