GetVertexAttribute(int)
Returns information about a vertex attribute based on its index.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public VertexAttributeDescriptor GetVertexAttribute(int index)
Parameters
The vertex attribute index (0 to Mesh.vertexAttributeCount-1).
Returns
Type | Description |
|---|---|
| VertexAttributeDescriptor | Information about the vertex attribute. |
Remarks
This function can be used together with Mesh.vertexAttributeCount to query information about vertex attributes that are present in the mesh, without needing any managed allocations.
Additional Resources: Mesh.vertexAttributeCount, Mesh.GetVertexAttributes, VertexAttributeDescriptor.