Jump to content

Mesh keeps importing to Unity with 2 materials but I have deleted all my materials in Blender.


Recommended Posts

I'm having a weird issue with a mesh where it will import it to Unity with two materials, but if I try to delete and replace the Mesh Renderer with a single material the pink part of the mesh disappears. I cannot figure out why it has decided to "split" the mesh into those two parts. I even tried deleting all of my Blender materials but the "mk2vtol" material keeps importing. I made sure that the mesh is one piece in Blender, and the UV map is all the same so I have no clue what the issue is. The missing material in the slot below is one that I deleted to better show how the mesh has been divided. The only other thing that I can think of is that I appended a mesh from a previous part to use in this one that uses the mk2vtol material, but idk where I would access that if it was stored in a different place.

3fV5yrCh.png

Link to comment
Share on other sites

In the material slot in Unity, just set the size value to 1.

The best solution is to tell Unity not to import materials from the model, of course.

If I do that though I get this (It's like it's treating the mesh as 2 parts..) :

UlJpLAP.png

Link to comment
Share on other sites

I guess you've managed to assign a different material to that part of the mesh in blender, then. I'm not entirely sure how blender works (is anybody??), but has the edge split modifier done what it says on the tin, and do you need to apply materials after that point in the stack? Is there a way to collapse the modifier stack, and does that help?

Link to comment
Share on other sites

it is enough if one single vertex is not assigned to any texture or the wrong texture..

this happens quite often and the fix is easy!

select the mesh, hit Tab for edit-mode, hit "a" to mark all verteces and then go to UV editor and simply select the image you want to use.

this will re-assign all verts to this texture and therefore fix the problem..

hth

Link to comment
Share on other sites

it is enough if one single vertex is not assigned to any texture or the wrong texture..

this happens quite often and the fix is easy!

select the mesh, hit Tab for edit-mode, hit "a" to mark all verteces and then go to UV editor and simply select the image you want to use.

this will re-assign all verts to this texture and therefore fix the problem..

hth

Ahh ok, I will try this for sure when I get home!

Edit: It worked, thanks a ton :)

Edited by Quiznos323
Link to comment
Share on other sites

  • 2 months later...

I had the same problem, but reassigning the materials, textures, images, vertices, etc. did not fix it. Eventually, I realised that unity doesn't like quads, and was adding separate materials for the quads and tris which were on the same mesh.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...