VertexAttribute
Possible attribute types that describe a vertex in a Mesh.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public enum VertexAttribute
Remarks
Mesh vertex data comprised of different Vertex Attributes. For example, a vertex can include a Position, Normal, TexCoord0 and Color. Not all Meshes have all possible VertexAttributes. You can use this enum to query which VertexAttributes a Mesh uses.
Fields
Value | Description |
|---|---|
| BlendIndices | Bone indices for skinned Meshes. |
| BlendWeight | Bone blend weights for skinned Meshes. |
| Color | Vertex color. |
| Normal | Vertex normal. |
| Position | Vertex position. |
| Tangent | Vertex tangent. |
| TexCoord0 | Primary texture coordinate (UV). |
| TexCoord1 | Additional texture coordinate. |
| TexCoord2 | Additional texture coordinate. |
| TexCoord3 | Additional texture coordinate. |
| TexCoord4 | Additional texture coordinate. |
| TexCoord5 | Additional texture coordinate. |
| TexCoord6 | Additional texture coordinate. |
| TexCoord7 | Additional texture coordinate. |