Version: 2021.2
언어: 한국어

Mesh.GetVertexAttributeFormat

매뉴얼로 전환
public Rendering.VertexAttributeFormat GetVertexAttributeFormat (Rendering.VertexAttribute attr);

파라미터

attr Vertex data attribute to check for.

반환

VertexAttributeFormat Format of the data attribute.

설명

Get format of a specific vertex data attribute on this Mesh.

Meshes usually use a known format for data layout, for example, a normal is a Vector3 by default. But meshes can use different vertex data formats, for example colors32 and colors set up vertex color in different formats. You can use this function to query this format.

See Also: VertexAttribute, HasVertexAttribute, GetVertexAttributeDimension, GetVertexAttributes.