# IsPickingEnabledOnAllDescendants(GameObject)

> Checks whether all the descendants are pickable.

## Definition

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

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

### Parameters

**** (\[GameObject]\(/engine/6000.0/script-reference/unityengine/gameobject)): GameObject on which to do the check.

### Returns

| Type                                                          | Description                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all descendants of the GameObject are pickable. |
