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 Object
in the scene and attach aMeshFilter
and aMeshRenderer
to it. - Attach the
ModelLoader
script to this game object. - Call the
LoadModel
method from this script using the path of the model as a string parameter.