Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVertexBufferStride(int)

Get the vertex buffer stream stride in bytes.
Read time 1 minuteLast updated 6 days ago

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.