{{newin|[[0.10.0]]|100|type=function}}
Gets the properties of a specific attribute within a vertex in the Mesh.

Meshes without a custom vertex format specified in [[love.graphics.newMesh]] have position as their first attribute, texture coordinates as their second attribute, and color as their third attribute.
== Function ==
=== Synopsis ===
<source lang="lua">
value1, value2, ... = Mesh:getVertexAttribute( vertexindex, attributeindex )
</source>

=== Arguments ===
{{param|number|vertexindex|The index of the the vertex you want to retrieve the attribute for (one-based).}}
{{param|number|attributeindex|The index of the attribute within the vertex to be retrieved (one-based).}}
=== Returns ===
{{param|number|value1|The value of the first component of the attribute.}}
{{param|number|value2|The value of the second component of the attribute.}}
{{param|number|...|Any additional vertex attribute components.}}

== See Also ==
* [[parent::Mesh]]
* [[Mesh:setVertexAttribute]]
* [[Mesh:getVertexCount]]
* [[Mesh:getVertexFormat]]
* [[Mesh:getVertex]]
[[Category:Functions]]
{{#set:Description=Gets the properties of a specific attribute within a vertex in the Mesh.}}
== Other Languages ==
{{i18n|Mesh:getVertexAttribute}}