Importing obj file with submeshes

I recently bought four obj models, which clearly are supposed to be subdivided into multiple submeshes, each with its own material, but they are imported into Unity as a single mesh. Is there any way to solve this? I can’t find anything on the forums.

Hi @HonoraryBob Did you manage to find a solution for your problem? I ran the same problem, except that it worked in Unity 2019.4 LTS, and then it stopped working after upgrading to Unity 2020.1. There’s a bit more info in this post:

https://forum.unity.com/threads/unity-2020-1-submesh-importing.1028884/

Thanks a lot in advance for your help.

Uffe

I don’t think I found a solution for that.

For anyone who googles this later, Unity’s OBJ importer has specific additional requirements for importing submeshes:

  • you must include a .MTL file
  • the .MTL file needs to be linked in the .OBJ file (e.g. a line that reads “mtllib myMaterial.mtl”)
  • no spaces or non-ASCII characters in any filenames (e.g. Chinese characters will break the importer)

Once I followed those requirements, I was able to get multiple OBJ submesh importing working again, as of Unity 2021.2

See Unity Issue Tracker - Some models have missing submeshes when imported as .obj for more info