Skip to content

Commit

Permalink
Merge pull request #67 from bulleador/patch-1
Browse files Browse the repository at this point in the history
fix: foldout arrow rendered out of the inspector in 2022.3 and newer
  • Loading branch information
mackysoft authored Oct 26, 2024
2 parents 8f4e361 + 71fa059 commit 9df6eae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -199,4 +199,4 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent

}
}
#endif
#endif

0 comments on commit 9df6eae

Please sign in to comment.