文档

Unity Engine

Unity Engine

GetVertexBufferStride(int)

Get the vertex buffer stream stride in bytes.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int GetVertexBufferStride(int stream)

Parameters

stream

The vertex data stream index to check for.

Returns

Type

Description

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

Remarks

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 Mesh.MeshData.SetVertexBufferParams). When you use such a layout, use this function to query the vertex data size in bytes within a given stream.