# LineRenderer()

> Instead of using this constructor, either use GameObject.AddComponent\<LineRenderer\>(), or if you have an existing LineRenderer component on a GameObject, use GameObject.GetComponent\<LineRenderer\>().

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public LineRenderer()
```
