Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnablePicking

Enables picking on a GameObject, or an array of GameObjects, and its descendants.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

EnablePicking(GameObject, bool)

Enables picking on a GameObject, or an array of GameObjects, and its descendants.
public void EnablePicking(GameObject gameObject, bool includeDescendants)

Parameters

gameObject

GameObject on which to enable picking.

includeDescendants

Whether to include descendants.

EnablePicking(Scene)

Enables picking on all GameObjects in a Scene.
public void EnablePicking(Scene scene)

Parameters

scene

Scene containing GameObjects on which to enable picking.

EnablePicking(GameObject[], bool)

Enables picking on a GameObject, or an array of GameObjects, and its descendants.
public void EnablePicking(GameObject[] gameObjects, bool includeDescendants)

Parameters

gameObjects

Array of GameObjects on which to enable picking.

includeDescendants

Whether to include descendants.