Skip to content

Commit 9df6eae

Browse files
authored
Merge pull request #67 from bulleador/patch-1
fix: foldout arrow rendered out of the inspector in 2022.3 and newer
2 parents 8f4e361 + 71fa059 commit 9df6eae

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;
@@ -199,4 +199,4 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent
199199

200200
}
201201
}
202-
#endif
202+
#endif

0 commit comments

Comments
 (0)