Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SkinWeights

Skin weights.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum SkinWeights

Remarks

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.

Fields

Value

Description

FourBonesFour bones affect each vertex. When used to access the Bone Weight buffer will contain one per vertex.
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.
UnlimitedAn unlimited number of bones affect each vertex.