Skip to content

CVR Line Renderer Helper

Feeds the positions of a list of transforms into a LineRenderer every LateUpdate. Useful for drawing dynamic lines between animated bones or moving objects without writing a script per prop.

Target LineRenderer. At Start the component sets lineRenderer.positionCount to the number of points.

List of Transforms. Each non-null transform becomes one vertex on the line. Null entries are skipped.

Each LateUpdate, the helper iterates Points in order and writes each transform’s world position into the line renderer. If lineRenderer.useWorldSpace is false, positions are first converted via InverseTransformPoint on the line renderer’s transform so the line is drawn in its local space.

  • CVR-GameFiles/ABI.CCK.Components/CVRLineRendererHelper.cs