ドキュメント

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.