ソースコード
public static GameObject Clone( LineRenderer lineRenderer )
{
var clone = new GameObject();
var cloneTransform = clone.transform;
var lineRendererTransform = lineRenderer.transform;
cloneTransform.position = lineRendererTransform.position;
cloneTransform.rotation = lineRendererTransform.rotation;
cloneTransform.localScale = lineRendererTransform.localScale;
var mesh = new Mesh();
lineRenderer.BakeMesh( mesh );
var meshFilter = clone.AddComponent<MeshFilter>();
meshFilter.mesh = mesh;
clone.AddComponent<MeshRenderer>();
return clone;
}