Search for a concept called '3D Picking' or 'Mouse picking' Or Ray-casting or all three.
There is a Unity3D Camera function
'ScreenPointToRay'[
^]
which gives you a 3D ray starting from your 2D screen along the 3D viewing direction.
Also check out the
Raycast[
^] function which gives you the 3D object hit by a ray (if any) in the scene.
I hope this helps