Empties the sequence of points of the Polyline and hides the line. Cleared Polylines are not included in the total number of points or in the number of Polylines.
Sets the color of the entire Polyline. The initial value is white.
It is not possible to set different colors for individual points.
The line is always drawn opaque.
The specified RGB values are each clamped to the range of 0 to 1.
If any of the elements contain NaN, Infinity, or -Infinity, the call of this method is ignored.
When called on an id for which no Polyline exists, a new Polyline is created.
If this causes the number of Polylines to exceed the upper limit, ClusterScriptError (polylineCountLimitExceeded) occurs. See PolylineHandle.setPoints for the upper limit.
The red component of the color of the line
The green component of the color of the line
The blue component of the color of the line
Sets the color of the entire Polyline. The initial value is white.
It is not possible to set different colors for individual points.
The alpha component is ignored, and the line is always drawn opaque.
The specified RGB values are each clamped to the range of 0 to 1.
If any of the elements contain NaN, Infinity, or -Infinity, the call of this method is ignored.
When called on an id for which no Polyline exists, a new Polyline is created.
If this causes the number of Polylines to exceed the upper limit, ClusterScriptError (polylineCountLimitExceeded) occurs. See PolylineHandle.setPoints for the upper limit.
The color of the line
Sets the sequence of points of the Polyline.
Each time this method is called, the previously set sequence of points is overwritten with the new one.
The positions of the points are specified in the local coordinates of the node the Polyline is attached to.
If the number of points of a single Polyline is less than 2, the line is not displayed.
If the number of points of a single Polyline exceeds 1000, ClusterScriptError (polylinePointCountLimitExceeded) occurs.
If the total number of points of all Polylines the item has exceeds the upper limit (10000 points for world items, 1000 points for craft items), ClusterScriptError (polylineTotalPointCountLimitExceeded) occurs.
If the number of Polylines the item has exceeds the upper limit (10000 Polylines for world items, 100 Polylines for craft items), ClusterScriptError (polylineCountLimitExceeded) occurs.
Polylines obtained from PlayerLocalObject.polyline are counted separately from these, and their upper limits are described there.
If the positions of the points contain NaN, Infinity, or -Infinity, an error occurs.
The array of points that make up the line
Sets the width of the line of the Polyline. The width is applied uniformly to the entire line. The initial value is 0.01.
The unit is meters, and the width is affected by the scale of the node.
If a value outside the range of 0 to 5 is specified, it is clamped to this range.
If NaN, Infinity, or -Infinity is specified, the call of this method is ignored.
When called on an id for which no Polyline exists, a new Polyline is created.
If this causes the number of Polylines to exceed the upper limit, ClusterScriptError (polylineCountLimitExceeded) occurs. See PolylineHandle.setPoints for the upper limit.
The width of the line
A Polyline is a single polygonal line represented by a sequence of points, a width, and a color. It is attached to an item, a SubNode, or a PlayerLocalObject, and is identified by an id. This interface is a handle for manipulating a single Polyline. It can be obtained from ClusterScript.polyline and others.
The states of Polylines attached to items and SubNodes are synchronized to all players, and players who enter the space later will also see the same lines.
Polylines attached to PlayerLocalObjects are not synchronized.