Version: Unity 6.2 (6000.2)
LanguageEnglish
  • C#

VertexAttribute

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Options for the attributes a vertex can store in a mesh.

Vertices in a mesh can store a variety of attributes, such as position, normal, tangent, texture coordinates, or colors. Most attributes are optional, and different meshes may have different sets of attributes. Use this enum together with the Mesh API to modify and reason about the attributes in a given mesh.

Additional resources: VertexAttributeDescriptor, Mesh.HasVertexAttribute, Mesh.GetVertexAttributes.

Properties

Property Description
PositionThe location of the vertex in space.
NormalThe direction perpendicular to the surface at the vertex position.
TangentThe direction tangential to the surface at the vertex position.
ColorThe color of the vertex, using the Color or Color32 format.
TexCoord0The primary UV coordinates of the vertex.
TexCoord1The second set of UV coordinates of the vertex.
TexCoord2The third set of UV coordinates of the vertex.
TexCoord3The fourth set of UV coordinates of the vertex.
TexCoord4The fifth set of UV coordinates of the vertex.
TexCoord5The sixth set of UV coordinates of the vertex.
TexCoord6The seventh set of UV coordinates of the vertex.
TexCoord7The eighth set of UV coordinates of the vertex.
BlendWeightThe values that describe how much influence bones have on a vertex in skinning calculations.
BlendIndicesThe indices that map a vertex to specific bones in skinning calculations.