This is a demo project on how you can set up animated, dotted or dashed line renderers in unity.
Additionally included is a script that demonstrates how you gain access to properties of shader graphs through code and how to draw with line renderers.
Link to Youtube Tutorial
Supported Unity version 2020.3.33f1 (Script File - LineDraw.cs)