Two UV Sets - One doesn't seem to work

Hi. I have a model that contains two UV sets, one for clothing and one for skin.

I import the model but it seems that one UV set is not containing UVs. I apply a material to each slot and the clothing shows up fine but the skin is only ever one color and no texture. If I click swap UVs in the import settings then the skin works and clothing doesn’t.

How do I make them both work?

You need a shader that takes advantage of two UV sets. Applying two different materials won’t do it; it sounds like you have two submeshes, which is a different thing. In that case each submesh should just use one UV set.

–Eric

I don’t have submeshes, it’s all one model. How do I separate out the shaders for the skin and clothing then?

I’m trying to use the teamfortress 2 shader found on the wiki.

Which shaders in unity take advantage of this?

You do have submeshes; it doesn’t matter if you have one model. If you have 2 material slots then you have 2 submeshes.

Just use one UV set, and submeshes.

That has no support for more than one UV set.

Only the lightmap shaders that I know of.

–Eric

I can’t find anything on google that explains what submeshes are properly, I thought it indicated that it was separated out into multiple meshes but I guess not.

How do I utilize them?

Cheers

You’re already doing it. Remove one of the UV sets.

–Eric

I’m really confused, how do I have separate materials for the skin and clothes then?

The simple question is why do you have UV1 for clothing and UV2 for skin ? You should use two materials (one for clothing and another for skin) and use UV1 for both of them.

You said “I apply a material to each slot”. So it seems you already have two materials.

–Eric

Oh. Duh, I get it now! Slow slow day…

Thanks guys. :slight_smile: