Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VertexAttribute

Options for the attributes a vertex can store in a mesh.
Read time 1 minuteLast updated 4 days ago

Definition

public enum VertexAttribute

Remarks

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.

Fields

Value

Description

BlendIndicesThe indices that map a vertex to specific bones in skinning calculations.
BlendWeightThe values that describe how much influence bones have on a vertex in skinning calculations.
ColorThe color of the vertex, using the Color or Color32 format.
NormalThe direction perpendicular to the surface at the vertex position.
PositionThe location of the vertex in space.
TangentThe direction tangential to the surface at the vertex position.
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.