linerender dot

I need a dotted line that can be animated (lengthened and shortened). The line is a child of another object, and must follow the movements. Linerender works, but I have problem with the shader. The UV form factor is calculate on the entire length of the object. So if i modify the length of line the result is a stretched dot line. There is a way to make shader with fixed tile UV based on texture size (or similar)? Another way to make resizable dot line are welcome…
Somebody can help?

but can you increase number of points instead of increasing its length?. That way it will not get stretched.

Dynamically change the Material.mainTextureScale based on the length of the line. This will cause the dots to tile. It is easiest to do the calculations if you author your texture for a line length of 1.0, and then scale the texture for other lengths.