Problems with finding MeshFilter component in runtime

Basically, I’m loading a .obj 3d model during runtime from a local drive, then I add a MeshCollider to it because I want the model to be clickable and I see no other way for that to happen besides having a collider. That’s where I run into problems…
The Mesh on MeshCollider is not defined automatically and that has to be done through scripting.

The only way I could think of achieving that is to use GetComponent to get the MeshFilter of same model, get the mesh attached to that MeshFilter and apply same mesh to the MeshCollider. That seems quite logical and it should work fine. HOWEVER, when I try to get the MeshFilter of that 3d model using:

Mesh mesh = hand.GetComponent<MeshFilter>().mesh;

It gives an error that MeshFilter component was not found… The weird thing is that the MeshFilter IS THERE. I tried finding the MeshFilter of a simple cube using exact same way and it works fine, but when I do that on my model it doesn’t work…
I have no idea what could possibly be wrong. There is MeshFilter on the model, so why the hell does it say that it’s not there?!

Thanks…

Nevermind guys, I fixed it…
Why the hell do I always find a solution to a problem right after I post a help topic about it lol :roll: