This version of Unity is unsupported.

SceneVisibilityManager.TogglePicking

Declaration

public void TogglePicking(GameObject gameObject, bool includeDescendants);

Parameters

gameObject GameObject on which to toggle picking ability.
includeDescendants Whether to include descendants.

Description

Toggles the picking ability of a GameObject.

When includeDescendants is true, a descendant is set to the same picking state as the parent GameObject. When includeDescendants is false, the picking state of descendants are not affected.