Unity: Object is not being detected by raycast for highlighting

I followed this tutorial on object selection. However, when I import my .obj assets and try to select/highlight them, it appears that the raycaster does not pick them up. Nothing happens when my mouse clicks on my .obj object. I added the necessary colliders (box collider even mesh collider) and nothing happens.

What am I doing wrong?

I didn’t change the code from the source provided. I just imported my object file to the scene and added the necessary physics.

All I want to do is highlight my .obj file onMouseDown. Is there anything I’m supposed to do to my imported object before rendering?

Is there a required tag that the objects need? Did you attach the script in the right place? Also the objects may need a rigidbody most likely

Eowyn27, as i understand this question is from here:

So, your application is still not working? I posted an fixed sources for your project. Please take a look to it. As i said the the reason was that “femur_left_1_7_dist/default” and “femur_left_1_7_prox/default” has no colliders.

Do they have colliders on them? Check the collider size and if the raycast is actually hitting the collider.