Line
Line
is a primitive object that creates a line.
Syntax
<Line />
Parameters
All objects share the same base parameters from ComponentObjectProps
.
Name | Type | Description |
---|---|---|
points | Vector3Array[] | The points of the line. |
bloom | boolean | Whether use bloom effect. |
color | ColorType | The base color. |
Example
<Line
points={[
[0, 2, 10],
[1, 1, 5],
[3, 4, 5],
]}
position={[0, 2, 0]}
/>
Available on: Client Server