Ghost could i ask a unity-related question? Do you work in C#? if not dont answer the below question
I'm trying to load a model into my game. I created a MeshFilter and meshCollider and i want to set the meshCollider's sharedmesh to an .obj file i have in my resources folder. I did this:
MeshCollider col = cube.AddComponent<MeshCollider> ();
col.sharedMesh = Resources.Load("cube.obj") as Mesh;
The objects show up in game. however, when i check the scene object and look at its mesh collider, the mesh field says None (Mesh). this is making it impossible for me to fire raycasts on anything. Do you know how to solve this issue? or maybe you have an example on how you instantiate models into the game, with all the components a default primitive would have, such as a meshfilter, meshrenderer, meshcollider, with all the values you need for each