Version: 2020.3

Mesh.AddBlendShapeFrame

切换到手册
public void AddBlendShapeFrame (string shapeName, float frameWeight, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents);

参数

shapeName 要将帧添加到其中的混合形状的名称。
frameWeight 所添加的帧的权重。
deltaVertices 所添加的帧的增量顶点。
deltaNormals 所添加的帧的增量法线。
deltaTangents 所添加的帧的增量切线。

描述

添加新的混合形状帧。

If blend shape name does not exist, then a new blend shape is created. Blend shape frames can only be added to a new bland shape, or the last blend shape. Usually there will be a single frame for a blend shape, but the range of blending [0-100%] may be split into multiple frames. Weight is assumed to be 100% when a shape only has one frame. Frame must be added in an increasing weight order for blend shapes having multiple frames. deltaVertices, deltaNormals and deltaTangents arrays must be of size = Mesh.vertexCount. Substract Mesh vertices, normals or tangents to convert from frame full vectors to get deltas. deltaNormals or deltaTangents may be set to null if there are no normals or tangents for a frame.

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