Editor handles drawing is not being clipped by GUI.BeginGroup or BeginClip

In Unity 2022.3.5f1 I have noticed that in certain editor windows UI drawing is not being clipped within its containing rect. I first noticed this with my own editor window, thinking I had a bug in my code, but have isolated it and discovered that GUI.BeginGroup or GUI.BeginClip is not clipping items drawn with Handles, such as DrawAAPolyLine.

For example, here is a screenshot of the profiler window. The graph area should be clipped and not drawing over the header section.

This has been filed as a bug report (IN-51114) with a sample editor window.

Hi,
Thanks for reporting this. We’ve found this internally too and a fix for that should already be getting backported :slight_smile: