change width of line renderer runtime unity code example
Example: unity line renderer start width
AnimationCurve curve = new AnimationCurve(); curve.AddKey(0, scale); curve.AddKey(1, scale); lineRenderer.widthCurve = curve;
AnimationCurve curve = new AnimationCurve(); curve.AddKey(0, scale); curve.AddKey(1, scale); lineRenderer.widthCurve = curve;