# PickRectObjects(Rect)

> Pick GameObjects that lie within a specified screen rectangle.

## Definition

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

```csharp
public static GameObject[] PickRectObjects(Rect rect)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): A screen rectangle specified with pixel coordinates.

### Returns

| Type                                                                        | Description |
| --------------------------------------------------------------------------- | ----------- |
| [GameObject\[\]](/engine/6000.6/script-reference/unityengine/gameobject.md) |             |

### Remarks

This is useful for implementing multi-select tools that allow the user to drag a rectangle around the desired objects.
