Version: 2023.1

Mesh.MeshData.GetVertexBufferStride

切换到手册
public int GetVertexBufferStride (int stream);

参数

stream The vertex data stream index to check for.

返回

int Vertex data size in bytes in this stream, or zero if the stream is not present.

描述

Get the vertex buffer stream stride in bytes.

Meshes usually use a single vertex buffer stream, but it is possible to set up a vertex layout where attributes use different vertex buffers (see SetVertexBufferParams). When you use such a layout, use this function to query the vertex data size in bytes within a given stream.

See Also: vertexBufferCount, GetVertexAttributeOffset, SetVertexBufferParams, Mesh.GetVertexBufferStride.

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