Version: 2020.3

Mesh.GetBlendShapeFrameVertices

切换到手册
public void GetBlendShapeFrameVertices (int shapeIndex, int frameIndex, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents);

参数

shapeIndex 帧的形状索引。
frameIndex 要获取其权重的帧索引。
deltaVertices 所检索的帧的增量顶点输出数组。
deltaNormals 所检索的帧的增量法线输出数组。
deltaTangents 所检索的帧的增量切线输出数组。

描述

检索混合形状帧的 deltaNormalsdeltaNormals 和 /deltaTangents/。

deltaNormalsdeltaNormalsdeltaTangents 数组的大小必须为 Mesh.vertexCount。加上网格顶点、法线或切线以从帧增量转换为完整矢量。如果没有从帧中检索到法线或切线,则 deltaNormalsdeltaTangents 可以设置为 null。

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