- Home /
Importing a 3d model (obj format) and texture from script in unity
I am using the ObjImporter from wiki to import 3d objects. I can also import textures on runtime. Here are some problems: 1. It creates the meshes only, how do i map the textures properly? 2. i am currently downloading obj files from turbosquid, some of the obj files are not being imported (can someone please tell me the possible reasons for this?) 3. Do i use a different obj importer?
Thanks :)
You don't have to use a special script to import OBJ files. Just drag and drop them into Unity.
hey, i want to import OBJ files at runtime...using a script
Answer by rowdyp · Jul 08, 2013 at 07:22 PM
to make the textures map upon runtime, you still need to have the textures in Unity already. Just like if you import a model then the texture, you have to manually assign the material, however if you import the texture first, it is automatically assigned.
ok thanks, but still how do you map the textures ? (these textures are after all images)