Version: 2021.1

SkinnedMeshRenderer.GetBlendShapeWeight

切换到手册
public float GetBlendShapeWeight (int index);

参数

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

返回

float BlendShape 的权重。

描述

返回此渲染器的 BlendShape 的权重。

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

另请参阅:SetBlendShapeWeight

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961