UMG Socket Lines

Thank you for you answer,but I realised that I asked the wrong question,the onPaint function seems to be the solution,but I couldn’t get it to work in my case,because I am using a Render Target to capture the weapon and then render it to UMG.I don’t suppose there is a solution to get the lines directly from there and I can’t paint them manually because I need to be able to rotate them with the weapon.