Skip to content

Commit 71fa059

Browse files
authored
fix: foldout arrow rendered out of the inspector in 2022.3 and newer
1 parent b7d76fb commit 71fa059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public override void OnGUI (Rect position, SerializedProperty property, GUIConte
5757
Rect foldoutRect = new Rect(position);
5858
foldoutRect.height = EditorGUIUtility.singleLineHeight;
5959

60-
#if UNITY_2022_2_OR_NEWER
60+
#if UNITY_2022_2
6161
// NOTE: Position x must be adjusted.
6262
// FIXME: Is there a more essential solution...?
6363
foldoutRect.x -= 12;
@@ -205,4 +205,4 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent
205205

206206
}
207207
}
208-
#endif
208+
#endif

0 commit comments

Comments
 (0)