Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

BoneWeight

struct in UnityEngine

Руководство

Описание

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.

Переменные

boneIndex0Индекс первой кости.
boneIndex1Индекс второй кости.
boneIndex2Индекс третьей кости.
boneIndex3Индекс четвертой кости.
weight0Skinning weight for first bone.
weight1Skinning weight for second bone.
weight2Skinning weight for third bone.
weight3Skinning weight for fourth bone.