Gets the cap style.
The cap style. Can be LINECAP_BUTT, LINECAP_SQUARE or LINECAP_ROUND. The style also applies to the ends of visible dashes. Defaults to LINECAP_BUTT.
Gets whether the last point connects back to the first point.
Whether the last point connects back to the first point. Defaults to false.
Gets the length of each visible dash in world units.
The length of each visible dash in world units. A value of zero makes the line solid. Defaults to zero.
Gets the offset of the dash pattern in world units.
Offset of the dash pattern in world units. Defaults to zero.
Gets the length of each gap in world units.
The length of each gap in world units. A value of zero makes the line solid. Defaults to zero.
Gets the join style.
The join style. Can be LINEJOIN_MITER, LINEJOIN_BEVEL or LINEJOIN_ROUND. Defaults to LINEJOIN_MITER.
The number of points in the line. This is zero until WideLine#set is called.
The renderer that owns this line, or null when the line is not being rendered.
Atomically replaces all point data. This is the only operation that can change the number of points. The colors and widths can each be supplied either per point or as a single uniform value.
Packed xyz coordinates. The length must be a multiple of three and contain at least two points.
Optionalcolors: ArrayLike<number> | Color = Color.WHITE
Packed rgb values with one color per point, or a single color used by every point. The alpha component of a Color is ignored.
Optionalwidths: number | ArrayLike<number> = 1
One width per point, or a single width used by every point. Width units are selected by the owning WideLineRenderer and values must be non-negative.
This line.
Replaces positions without changing the number of points.
Packed xyz coordinates containing exactly
pointCount * 3 values.
This line.
Replaces widths without changing the number of points.
An array containing exactly pointCount values,
or a single width used by every point. Width units are selected by the owning
WideLineRenderer and values must be non-negative.
This line.
A connected, variable-width line rendered by a WideLineRenderer. Point data is supplied using packed numeric arrays to avoid allocating an object for each point.
A WideLine can belong to at most one WideLineRenderer. Removing it from the renderer leaves the WideLine intact, allowing it to be added to another renderer later.