I'm trying to use the mesh from an .obj file.
I'm not doing a game from scratch but rather a mod for an already built game, so I only have scripts to load new things. I tried Resources.Load() but nothing was loaded.
The exact code I tried is: MeshFilter meshObject = Resources.Load<MeshFilter>("Resources/meshName");
I also tried with Mesh instead of MeshFilter.
The file is in the folder "Resources" (the folder itself is where the main.cs is, inside the visual studio project), in case this is important.
Something else I tried is loading the .obj as a GameObject and then get its mesh:
GameObject meshObject = Resources.Load<GameObject>("name");
Mesh myMesh = meshObject.GetComponent<Mesh>();
This got me a null exception.
GameObject instantiatedModel = Instantiate(meshObject)