기술 자료

Unity Engine

Unity Engine

GetVertexAttributeFormat(VertexAttribute)

Get format of a specific vertex data attribute on this Mesh.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public VertexAttributeFormat GetVertexAttributeFormat(VertexAttribute attr)

Parameters

Vertex data attribute to check for.

Returns

Type

Description

VertexAttributeFormatFormat of the data attribute.

Remarks

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 Mesh.colors32 and Mesh.colors set up vertex color in different formats. You can use this function to query this format.