UnityMeshImporter
UnityMeshImporter copied to clipboard
Larger models render in a broken state
Larger models render in a broken state. The models I'm testing happen to be Wavefront OBJs, but I don't think this is related to #6. Simpler or smaller models seem to import fine.
I've found that these models use meshes that have indices in faces that are higher than 2^16, which are disabled by Unity by default.
Setting the index format to be Uint32
for Mesh
on MeshImporter.cs#L184 seems to fix it:
I could make a pull request for it, if you want, but I'm not using this project directly myself. In any case, I hope this helps someone, like this project provided guidance for me in getting Assimp data converted to Unity!
I know it's passed some time but if anyone looks back and has a similar issue, my meshes are fairly big as well except I'm working with .dae files.
The solution here worked perfectly for me.