17 line render
作者:互联网
参考内容:https://www.cnblogs.com/koshio0219/p/12102577.html
line render 常用函数
lineRenderer = gameObject.AddComponent<LineRenderer>();
//设置材质
lineRenderer.material = new Material(Shader.Find("Particles/Additive"));
//设置颜色
lineRenderer.SetColors(Color.red, Color.yellow);
//设置宽度
lineRenderer.SetWidth(0.02f, 0.02f);
//设置线段的端点数
lineRenderer.SetVertexCount(LengthOfLineRenderer);
lineRenderer.SetPosition(index, position);
标签:render,17,0.02,lineRenderer,Color,设置,line 来源: https://www.cnblogs.com/dandansang/p/15824626.html