Make player trace a dotted line

I’m building a game where a player has to weld a seam. The idea is for the player to trace a dotted line with their cursor, and when they’ve traced it all, the weld is complete.

What would be the best method to determine how much of the line the player has successfully traced, and when they’re complete?

for some reason that made me think of this video - Unreal Engine 4: Enable Marching Ants Selection Outline - YouTube

but perhaps you could make your trace be an array of a stuct that contains two vectors - then you can loop through that to rendered with debug draw, or whatever method you go about, then as the player trace is, when they hit the start/end points of each element of this array, you build up a seconday array of those points (which you can render with another style) then when both arrays contain all the same points, you can action off of that