# PickAllObjects(Vector2, List<Object>)

> Creates a list of all GameObjects under the specified position in screen coordinates.

## Definition

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

```csharp
public static void PickAllObjects(Vector2 position, List<Object> results)
```

### Parameters

**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): The position in screen coordinates. The top-left of the window is (0,0), and the bottom-right is (Screen.width, Screen.height).**** (\[List\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The output list to populate with all GameObjects at the specified position.

### Remarks

`HandleUtility.PickAllObjects` must not be called during a repaint. In most cases, it is appropriate to call during [EventType.MouseDown](/engine/6000.0/script-reference/unityengine/eventtype/mousedown.md) or [EventType.MouseUp](/engine/6000.0/script-reference/unityengine/eventtype/mouseup.md). A common use would be to pick all GameObjects at the current cursor position.
