Hi,
I have been following this tutorial: How to make a laser in Unity3d - YouTube
I would like to use LineRenderer to generate lightning bolts and have that running well, but the lines that I draw look boring. The thing is that I set the width of the LineRenderer like this “lineRenderer.SetWidth (0.05f, 0.05f);
” but it seems the png/texture I use for my materiel isn’t scaled with the LineRenderer so in my line I only see the center of the png/texture, because if I set the width of the LineRenderer to “1” it looks as I expected. i then tried to do this “lineRenderer.material.SetTextureScale ("_MainTex", new Vector2(0.5f, 0.5f));
” to scale the texture to match the line width but this does not work well.
I am quite new to Unity and the whole material concept, but how can I draw a beautiful line with a bright center and blurred edges to get a good looking lightning bolt? Is LineRenderer the way to go and then how, or?
Thank you
Søren