Version: 2023.1
언어: 한국어

Mesh.MeshData.GetVertexAttributeStream

매뉴얼로 전환
public int GetVertexAttributeStream (Rendering.VertexAttribute attr);

파라미터

attr The vertex data attribute to check for.

반환

int Stream index of the data attribute, or -1 if it is not present.

설명

Get the vertex buffer stream index of a specific vertex data attribute on this MeshData.

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 which vertex buffer stream a given attribute is part of.

Note that this function returns the index of the stream, without specifying where the attribute is within the stream. To identify the location of a given attribute in the stream, use GetVertexAttributeOffset.

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

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