Use mouse draw line in the 2D,how to do?

Everynone, in the blueprint where you show how to loop through the array of lines, which blueprint would this go in? The on mouse button override or the onPaint override? Thanks if you can help out, I know this thread is very old :slight_smile: