Version: 2017.1
public static GameObject PickGameObject (Vector2 position, bool selectPrefabRoot);
public static GameObject PickGameObject (Vector2 position, out int materialIndex);

パラメーター

selectPrefabRoot プレハブを選択します。
materialIndex 指定されたポジションに最も近い Renderer コンポーネントのマテリアル配列にインデックスを返します。

説明

指定したポジションに最も近いゲームオブジェクトを選択します。