im a little new to unity. there’s an .obj file in my resource folder called “cube.obj” and i want to load it into the mesh collision of an object. I’m trying
MeshCollider col = cube.AddComponent<MeshCollider> ();
col.sharedMesh = Resource.Load("cube") as Mesh;
Nothing happens. when i check the scene and examine the gameobject (its a cube) and i check the meshcollider, the mesh field is None (Mesh) instead of Cube (Mesh)
also keep in mind i dont understand C# that much.