Version: 2020.1

SkinnedMeshRenderer.SetBlendShapeWeight

切换到手册
public void SetBlendShapeWeight (int index, float value);

参数

index 要修改的 BlendShape 的索引。索引必须小于附加到此渲染器的网格的 Mesh.blendShapeCount
value 此 BlendShape 的权重。

描述

设置此渲染器的 BlendShape 的权重。

BlendShape 的权重表示网格从其原始形状混合(或变形)到目标 BlendShape(另一个网格,与原始形状的拓扑相同,但顶点位置不同)的程度。BlendShape 权重范围包括介于模型中定义的最小权重和最大权重之间的值。

另请参阅:GetBlendShapeWeight