I have a mesh that I want to change using a script during runtime. But I only want to change certain vertexes in the mesh. In Blender these vertexes form a vertex group but you don’t see this in Unity. Therefor I added a bone for each group and connected these with the vertex group giving them weight 1.
My idea was to find the correct groups in Unity by looping through Mesh.boneWeights and seeing if the weight to a certain bone was equal to 1. But how do I find out which bone index corresponds to which bone?