DLL for importing .obj files with material and texture.
The project is based on Unity's ObjImporter, the code is converted into C++, simplified and cleaned. In addition to .obj loading, material loading and texture address extracing added to the DLL.
- Place the ObjImporter.dll & ModelLoader.cs files into your Unity project.
- Create an
Empty Game Objectin the scene and attach aMeshFilterand aMeshRendererto it. - Attach the
ModelLoaderscript to this game object. - Call the
LoadModelmethod from this script using the path of the model as a string parameter.