UI Line Renderer
A LineRenderer equivalent that supports masking.
Your materials (shaders) must also support masking or else masking won't work. You can use the "MaskableConnectionLineDefault" material if you'd rather not create your own.

The UI Line Renderer component is similar to Unity's Line Renderer, except it works completely in uGUI. It is visible in Screen Space - Overlay and supports masking.
Properties
Material
The material of the line.
Color
The color of the line.
Raycast Target
If raycasting should be enabled on the graphic.
Raycast Padding
Padding to be applied to the masking.
Maskable
If the graphic should allow masking.
Points
The list of points that define the line path.
Line Width
The width of the line in units.
Width Curve
Animation curve that controls how the line width varies along its length.
Color Gradient
Gradient that controls how the line color varies along its length.
Corner Vertices
Number of vertices used to create smooth corners between line segments.
End Cap Vertices
Number of vertices used to create rounded end caps at the line ends.
Loop
Whether the line should form a closed loop by connecting the last point to the first.
Last updated