Simple Dashed lines using line2D (NO CODE, NO IMPORT)

I was exploring some options for adding simple dashed lines without importing texture or writing code. I tried out a method by using GradientTexture1D in line2d node and it’s quite handy. So, I wanted to share it here.

IMPORTANT NOTE: Aside from the properties above, you will have to set Repeat → Enabled, so that you can increase the line length as much as you want.

Some helpful tips here:

  • Use the Toggle Grid Snap option to have equal intervals between each dash.

  • Adding a width curve helps to create dashed with gradually increasing width (4th line in the first attached image)

PS If this method is already known in the community, kindly excuse.

1 Like