TogglePicking(GameObject, bool)
Toggles the picking ability of a GameObject.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public void TogglePicking(GameObject gameObject, bool includeDescendants)
Parameters
GameObject on which to toggle picking ability.
Whether to include descendants.
Remarks
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.