Component that holds data for rendering a line.
Optional
Reference to the GameObject this component is attached to.
Start point of the line.
End point of the line.
Stroke width of the line.
Draws the line to the canvas.
The canvas 2D rendering context.
Optional lifecycle hook called when the component is added to a GameObject.
Component that holds data for rendering a line.