DisablePicking
Disables picking on a GameObject, or an Array of GameObjects, and their descendants.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
DisablePicking(GameObject, bool)
Disables picking on a GameObject, or an Array of GameObjects, and their descendants.
public void DisablePicking(GameObject gameObject, bool includeDescendants)
Parameters
GameObject on which to disable picking.
Whether to include descendants.
DisablePicking(Scene)
Disables picking on all GameObjects in a Scene.
public void DisablePicking(Scene scene)
Parameters
Scene containing GameObjects on which to disable picking.
DisablePicking(GameObject[], bool)
Disables picking on a GameObject, or an Array of GameObjects, and their descendants.
public void DisablePicking(GameObject[] gameObjects, bool includeDescendants)
Parameters
Array of GameObjects on which to disable picking.
Whether to include descendants.