# EnablePicking

> Enables picking on a GameObject, or an array of GameObjects, and its descendants.

## Definition

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

## EnablePicking(GameObject, bool)

Enables picking on a GameObject, or an array of GameObjects, and its descendants.

```csharp
public void EnablePicking(GameObject gameObject, bool includeDescendants)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): GameObject on which to enable picking.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to include descendants.

## EnablePicking(Scene)

Enables picking on all GameObjects in a Scene.

```csharp
public void EnablePicking(Scene scene)
```

### Parameters

**** (\[Scene]\(/engine/6000.7/script-reference/unityengine/scenemanagement/scene)): Scene containing GameObjects on which to enable picking.

## EnablePicking(GameObject\[], bool)

Enables picking on a GameObject, or an array of GameObjects, and its descendants.

```csharp
public void EnablePicking(GameObject[] gameObjects, bool includeDescendants)
```

### Parameters

**** (\[GameObject\[]]\(/engine/6000.7/script-reference/unityengine/gameobject)): Array of GameObjects on which to enable picking.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to include descendants.
