Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

SkinWeights

enumeration

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

Skin weights.

How many bones affect each vertex. This can be used when accessing the Bone Weight Buffer with Mesh.GetBoneWeightBuffer to determine what way the data will be ordered.

Additional resources: QualitySettings.skinWeights, SkinnedMeshRenderer.quality, Mesh.GetBoneWeightBuffer.

Properties

NoneThe mesh does not contain any bone weight data.
OneBoneOne bone affects each vertex. When used to access Mesh.GetBoneWeightBuffer the Bone Weight buffer will contain only indices to the bones, as the weight will be set to 1.
TwoBonesTwo bones affect each vertex. When used to access Mesh.GetBoneWeightBuffer the Bone Weight buffer will contain two indices and two floats per vertex.
FourBonesFour bones affect each vertex. When used to access Mesh.GetBoneWeightBuffer the Bone Weight buffer will contain one BoneWeight per vertex.
UnlimitedAn unlimited number of bones affect each vertex.