Ray and Mouse

Help

I am not able to make.

I have 10 objects in the game, it is 3D but I need the mouse clicking and selecting
objects by dragging the mouse to go over to this area

I’m using
Camera.main.ScreenToWorldPoint and Ray

Can someone help me

Try, instead, overloading the OnMouseOver() functions on the objects.

function OnMouseOver()
{
    //if the user is dragging, move object accordingly

}

Or do you need help coding the actual dragging functionality?