> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/over-visual-scripting-legacy/nodes/components/engine/linerenderer.md).

# LineRenderer

### Description

A LineRenderer [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to draw free-floating lines in a 3D space, by interacting with the Unity [LineRenderer](https://docs.unity3d.com/ScriptReference/LineRenderer.html) Component.

#### LineRenderer Exposer

This node is used to expose the parameters and attributes of a given input Unity [LineRenderer](https://docs.unity3d.com/ScriptReference/LineRenderer.html) component, which are:

<table><thead><tr><th>Name</th><th width="187.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Ref</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity LineRenderer Component</td></tr><tr><td>Start Color</td><td>Color</td><td>The color at the start of the line</td></tr><tr><td>End Color</td><td>Color</td><td>The color at the end of the line</td></tr><tr><td>Start Width</td><td>Float</td><td>The line width at the start of the line</td></tr><tr><td>End Width</td><td>Float</td><td>The line width at the end of the line</td></tr><tr><td>Loop</td><td>Boolean</td><td>Connect the start and end positions of the line together to form a continuous loop</td></tr><tr><td>Position Count</td><td>Integer</td><td>The number of vertices of the line</td></tr><tr><td>Material</td><td><a href="https://docs.unity3d.com/ScriptReference/Material.html">Material</a></td><td>The first instantiated material assigned to the line renderer</td></tr><tr><td>Shared Material</td><td><a href="https://docs.unity3d.com/ScriptReference/Material.html">Material</a></td><td>The shared material of this object</td></tr></tbody></table>

<figure><img src="/files/msb2v8FgDKskg8JKPyqZ" alt=""><figcaption></figcaption></figure>

### Handlers

#### Set Color

This node is used to modify an existing Line Renderer Component, by setting a new Color. A `Position` can be selected to instruct the node either to set the start or the end colour.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="213.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Line Renderer Component</td></tr><tr><td>Color</td><td>Color</td><td>Color to set</td></tr><tr><td>Position</td><td>Enum</td><td>Either Start or End</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/sROXTocsWPTqcohxdJYk" alt=""><figcaption></figcaption></figure>

#### Set Width

This node is used to modify an existing Line Renderer Component, by setting a new line Width. A `Position` can be selected to instruct the node either to set the start or the end line width.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="204.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Line Renderer Component</td></tr><tr><td>Width</td><td>Float</td><td>Width of the line to set</td></tr><tr><td>Position</td><td>Enum</td><td>Either Start or End</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/2yf0lLpDP4oCIafM7yN3" alt=""><figcaption></figcaption></figure>

#### Set Loop

This node is used to modify an existing Line Renderer Component, by editing the loop property of the line.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="209.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Line Renderer Component</td></tr><tr><td>Loop</td><td>Bool</td><td>This value determines if the line will loop or not</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/EYy1Lb979m39lU4wvxFJ" alt=""><figcaption></figcaption></figure>

#### Set Position Count

This node is used to modify an existing Line Renderer Component, by editing the number of vertices contained in the line.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="211.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Line Renderer Component</td></tr><tr><td>Position Count</td><td>Integer</td><td>This value determines how many vertices the line will contain</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/d4RR72JWrh3Rd97irVwc" alt=""><figcaption></figcaption></figure>

#### Set Material

This node is used to modify an existing Line Renderer Component, by setting a new [Material](https://docs.unity3d.com/ScriptReference/Material.html). A `Material Type` can be selected to instruct the node either to set the `Shared Material` or not.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="214.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Renderer Component</td></tr><tr><td>Material</td><td><a href="https://docs.unity3d.com/ScriptReference/Material.html">Material</a></td><td>Material to be set</td></tr><tr><td>Material Type</td><td>Enum</td><td>Either New or Shared</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/JHZkfAog9wnlx9WEoyQc" alt=""><figcaption></figcaption></figure>

#### Set Position

This node is used to modify an existing Line Renderer Component, by editing the Position value of one of its vertices.

This Flow Node accepts the following input data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Line Renderer</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the input Unity Renderer Component</td></tr><tr><td>Index</td><td>Integer</td><td>Index value of the vertex to edit</td></tr><tr><td>Position</td><td>Vector3</td><td>New vertex position</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Output</td><td><a href="https://docs.unity3d.com/ScriptReference/LineRenderer.html">LineRenderer</a></td><td>A reference of the modified Unity Renderer Component</td></tr></tbody></table>

<figure><img src="/files/bWpMiLHKipKf2qOBWZL8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.overthereality.ai/over-sdk-manual/over-visual-scripting-legacy/nodes/components/engine/linerenderer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
