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:
commit
9df6eae13c
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user