Skinned Mesh Renderer Mesh Attaches to the wrong gameobject(bone) despite identical Bone Order
So I have 2 nearly identical characters. The only difference is that 1 has certain meshes attached to them and the other has other meshes attached to them.
I want character A to have the clothes of character B. The way i did this was by creating a parented gameobject, adding a skin mesh renderer and adding the Mesh from character B, Rootbone of character A and materials elements 0 of character B.
One side of the clothing works perfectly, however the other side seems to be attached to the wrong gameobjects. What was supposed to be attached to the Right leg, is attached to the Right thumb.
Inside: https://forum.unity.com/threads/replacing-mesh-in-skinnedmeshrenderer-causes-deformation.351474/ I found this code: https://gist.github.com/tsubaki/ea6ece1cd9a851ff977e#file-skinnedmeshupdater-cs That helped me see the "Bone numbers/order", but to my demise, in my case they are actually the same between Character A and Character B.
Coping over a mesh from character B to character A also doesn't work as somehow the game objects stays linked with Character B.
Does anyone know how to fix this issue, or how to manually change the bone from Right_thumb to Right_Leg?