Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Scene to check.

Returns

Type

Description

boolReturns 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

GameObject to check.

Returns

Type

Description

boolReturns true if all root GameObjects of the Scene and all their descendants have picking disabled.