IsPickingDisabledOnAllDescendants
Checks whether all the descendants of a GameObject have picking disabled.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
IsPickingDisabledOnAllDescendants(Scene)
Checks whether all the descendants of a GameObject have picking disabled.
public bool IsPickingDisabledOnAllDescendants(Scene scene)
Parameters
Scene to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all descendants have picking disabled. |
IsPickingDisabledOnAllDescendants(GameObject)
Checks whether root GameObjects, and all their descendants, have picking disabled in a scene.
public bool IsPickingDisabledOnAllDescendants(GameObject gameObject)
Parameters
GameObject to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all root GameObjects of the Scene and all their descendants have picking disabled. |