How to make 2d laser from texture

Hello everybody. I want to add a laser from my texture to my 2D game, I use for this lineRenderer but the texture is stretched and it does not look nice(digit 1). I need the texture to “repeat” and the laser texture is not distorted(digit 2)

How to do it?

6604765--751363--problem.png

Take a look at “Wrap Mode” setting. You likely want the Repeat setting. This should work with normal sprites. Do you find it meets your requirements for use with the Line Renderer?

Repeat mode does not help. I don’t know how to make a laser without line renderer

Set the LineRenderer’s TextureMode to Tile. This will repeat the texture along the line, rather than stretch it.

2 Likes

It worked! thanks