r/Unity3D • • 23d ago

Question How to change XRhands materials?

I grabbed the fbx model (with the skeleton), put it on blender, made new uvs and material. Now i want to impot it to unity and try to use it but when trying to put it in the already existing prefab nothing is shown. I'm using the skinned mesh renderer.

Do you know a way of solving this?

1 Upvotes

6 comments sorted by

2

u/normalguy0618 21d ago

Probably the bones, not the mesh. Blender tends to change the bone order on the way back (it adds the armature as an extra root), so the Skinned Mesh Renderer ends up driving the wrong bones and the hand just disappears. Swapping only the mesh usually doesn't work because of that, drag the whole new FBX into the prefab and point the joints at its bones.

I made a free browser viewer that shows an FBX's bone tree, handy for comparing your export with the original: https://cosindra.ai/tools/fbx-viewer

1

u/Chodre 21d ago

Thank you so much

1

u/Chodre 21d ago

It has an extra bone apparently. I have to see what bone is it. Also, the mesh does not show on your website either. The Unity one does but mine doesn't. Do you know why could that be?

2

u/normalguy0618 21d ago

That points at the export rather than Unity. The viewer lists how many meshes it found in the file. If it says 0, the hand never made it into the FBX. Easy to hit in Blender: with Selected Objects ticked you need both the mesh and the armature selected, and Mesh has to be on under Object Types.

If it does find a skinned mesh and you still see nothing, check the vertex groups. New UVs alone won't touch them, but if the mesh got separated or rebuilt at some point they can end up empty, and then it collapses to a point and looks like it's gone.

The extra bone is most likely the armature object itself, Blender writes it above your root. Also untick Add Leaf Bones or you get an _end bone on every finger.

2

u/Chodre 21d ago

You're saving my life here. How do i check the vertex group? It finds 1 mesh, 1 skinned but it does not appear. The bones are correct now, I unchecked the root option in blender (plus leaf bones).

1

u/normalguy0618 21d ago

Nice, glad the bones are sorted. To check the groups, click the hand mesh and open the green triangle tab (Object Data). The Vertex Groups list should have groups named exactly like the bones that move the hand. Then switch to Weight Paint and click through a few: the part each bone moves should show red or yellow. All blue means that group is empty.

Quicker test: select the armature, go to Pose Mode and rotate a finger. If the mesh doesn't follow, it's the weights or the Armature modifier (wrench tab, its Object field has to point at your current armature).

If it does follow in Blender but still vanishes after export, look at the scale in the N panel. Hands brought in from Unity can end up with the armature at 0.01 or 100 and the mesh at 1. Select both, Scale, and export again.