Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

BoneWeight

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

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.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Skinning 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.

Properties

boneIndex0Index of first bone.
boneIndex1Index of second bone.
boneIndex2Index of third bone.
boneIndex3Index of fourth bone.
weight0Skinning weight for first bone.
weight1Skinning weight for second bone.
weight2Skinning weight for third bone.
weight3Skinning weight for fourth bone.

Did you find this page useful? Please give it a rating: