# Get2DLights()

> Gets an array of all 2D lights in the scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
protected virtual Object[] Get2DLights()
```

### Returns

| Type                                                                | Description                    |
| ------------------------------------------------------------------- | ------------------------------ |
| [Object\[\]](/engine/6000.3/script-reference/unityengine/object.md) | Returns an array of 2D Lights. |
