Clip Draw Line in UMG On Paint?

I’m using Draw Line inside a UMG widget to draw lines between child widgets. This works fine, except the issue I have is that some of the child widgets can be clipped by the outer parent widget. However, the line being drawn to these clipped child widgets is not being clipped. So, I end up with a line drawing outside the parent widget to a child widget that has been clipped. Is there a way I can clip what I draw in the On Paint function?