Skip to main content

2D Line Renderer

The 2D Line Renderer node allows you to draw 2D lines dynamically by utilizing a set of vector 2 coordinates. With this node, you can customize the appearance of the line by adjusting its material, width, and pixel density.

Input

NameData TypeDescription
EnterExecTriggers the execution of this node
2D CameraComponentThe corresponding 2D camera
KeypointsVec2The vec2 array to use to draw the 2D line
WidthNumberThe width of the 2D Brush
Pixel Per UnitNumberThe 2D line's number of pixels per unit
MaterialMaterialThe 2D line's material
TransformComponentThe 2D line's Transform component

Output

NameData TypeDescription
EnterExecExecutes the next node