How to DrawLine with Anti-aliasing

Currently I’m using LineBatcher in C++ to draw lines and it’s very convenient but I can’t find a way to enable anti-aliasing with it. Is there a way to fix this problem or some other way to draw the line?

Try spline mesh component

Thank you, I will try to use it, but if I want to draw many lines, do I need to create many components?

The answer maybe yes, if you want multi lines covered by a single component, the procedural mesh component could help you.
Based on personal experience only.

I’m also using LineBatcher, and I need screenspace, so I’m also looking for anti-aliasing. The spline mesh component doesn’t meet my needs.Can someone tell me what to do.