From 71fa059b0c7ee622889506cc982d42953c24bf17 Mon Sep 17 00:00:00 2001 From: Bullet <49511937+bulleador@users.noreply.github.com> Date: Sat, 7 Sep 2024 15:29:21 +0200 Subject: [PATCH] fix: foldout arrow rendered out of the inspector in 2022.3 and newer --- .../Editor/SubclassSelectorDrawer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs index e6a3f3e..3c15935 100644 --- a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs @@ -57,7 +57,7 @@ public override void OnGUI (Rect position, SerializedProperty property, GUIConte Rect foldoutRect = new Rect(position); foldoutRect.height = EditorGUIUtility.singleLineHeight; -#if UNITY_2022_2_OR_NEWER +#if UNITY_2022_2 // NOTE: Position x must be adjusted. // FIXME: Is there a more essential solution...? foldoutRect.x -= 12; @@ -205,4 +205,4 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent } } -#endif \ No newline at end of file +#endif