Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

index

The vertex attribute index (0 to Mesh.vertexAttributeCount-1).

Returns

Type

Description

VertexAttributeDescriptorInformation 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.