Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSkinning bone weights of a vertex in the mesh.
Each vertex is skinned with up to four bones. All weights should sum up to one. Weights and bone indices should be defined in the order of decreasing weight. If a vertex is affected by less than four bones, the remaining weights should be zeroes.
See Also: Mesh.boneWeights variable.boneIndex0 | Index of first bone. |
boneIndex1 | Index of second bone. |
boneIndex2 | Index of third bone. |
boneIndex3 | Index of fourth bone. |
weight0 | Skinning weight for first bone. |
weight1 | Skinning weight for second bone. |
weight2 | Skinning weight for third bone. |
weight3 | Skinning weight for fourth bone. |