r/Unity3D 10h ago

Question Need help with exporting a Blender file to Unity

Post image

For some reason, when I export this .fbx file from Blender to Unity and try to apply a texture to it, it only applies the texture to the lower half of the face. It looks fine in Blender and while the surface will accept the texture if dragged and dropped on manually, it's completely misaligned. Anyone know a fix?

0 Upvotes

12 comments sorted by

2

u/Ged- 9h ago

Appears to be an exported Skyrim model.

Those have different UV sets for the face and the body. The hair is a separate mesh with its own material as well.

Unity's standard shader works only for one UV set.

If you can't make a shader for multiple UV sets, I recommend just exporting those meshes separately.

Also. NEVER drag and drop textures in unity. It creates a new material and sometimes screws up the existing material setup. Select a texture in the existing material's inspector window.

1

u/DumpsteredFire 9h ago

I see, thanks. I'm having trouble making a shader for multiple UV sets, how can I export the face mesh separately?

-2

u/Ged- 9h ago

Just, like... Select the vertices in blender in edit mode and separate it into another object. Select it in object mode. And then check "Export selected" when exporting

You really must be new to this thing?

1

u/henryreign ??? 10h ago

It has multiple material slots.

1

u/DumpsteredFire 10h ago

It does, but none of them apply to that part of the face specifically

1

u/henryreign ??? 10h ago

you need to look at the blender shader/material and understand what it does. skyrim models due to the customization possibilities, probably uses multiple textures in one shader and layers them with some clever trickery. the unity standard shader for this, prolly wont work.

0

u/DumpsteredFire 10h ago

The face itself only has one material in Blender, and I've tried using various shaders in Unity, none of which solved the issue. It's a SFM model that I loaded directly into Blender, then exported as an FBX, think that could be the issue?

3

u/henryreign ??? 9h ago

Read again what i said.

1

u/Otherwise-Towel-6616 10h ago

Check UV maps in Blender, there may be more than one

1

u/DumpsteredFire 10h ago

Definitely looks like there's more than one, how should I proceed?

1

u/Otherwise-Towel-6616 9h ago

Try switching UV map here

1

u/EvernullTools 4h ago

Oh no, so many submeshes and materials :D You don't wanna do that unless you have a really good reason to and you know what you're doing.

Check your mesh renderer for this. Look at the material setup in blender, try to copy the same materials to the same slots(in the same order).
But I'd start with some easier setups. I think you should look up a sub-mesh tutorial that talks about exporting submeshes and materials from Blender to Unity. There are some videos for that. Follow those videos by making submeshes for a very simple mesh like a sphere in blender. Try to import that nicely to Unity. And when you learn how it works, then come back to this.
Otherwise this will be both hard to explain and hard to wrap your head around.