# IsPickingDisabledOnAllDescendants

> Checks whether all the descendants of a GameObject have picking disabled.

## Definition

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

## IsPickingDisabledOnAllDescendants(Scene)

Checks whether all the descendants of a GameObject have picking disabled.

```csharp
public bool IsPickingDisabledOnAllDescendants(Scene scene)
```

### Parameters

**** (\[Scene]\(/engine/6000.3/script-reference/unityengine/scenemanagement/scene)): Scene to check.

### Returns

| Type                                                          | Description                                            |
| ------------------------------------------------------------- | ------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all descendants have picking disabled. |

## IsPickingDisabledOnAllDescendants(GameObject)

Checks whether root GameObjects, and all their descendants, have picking disabled in a scene.

```csharp
public bool IsPickingDisabledOnAllDescendants(GameObject gameObject)
```

### Parameters

**** (\[GameObject]\(/engine/6000.3/script-reference/unityengine/gameobject)): GameObject to check.

### Returns

| Type                                                          | Description                                                                                        |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all root GameObjects of the Scene and all their descendants have picking disabled. |
