Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

HandleUtility.PickGameObject

static function PickGameObject(position: Vector2, selectPrefabRoot: bool): GameObject;
static GameObject PickGameObject(Vector2 position, bool selectPrefabRoot);
static def PickGameObject(position as Vector2, selectPrefabRoot as bool) as GameObject

Description

Pick game object closest to specified position.